Fixing Ethernet client connect code to properly chance source port each time.
This commit is contained in:
parent
acc72e2c78
commit
8e8de29347
|
@ -33,8 +33,7 @@ uint8_t Client::connect() {
|
|||
|
||||
_srcport++;
|
||||
|
||||
// XXX: what port should we connect from?
|
||||
socket(_sock, Sn_MR_TCP, _port, 1024 + _srcport);
|
||||
socket(_sock, Sn_MR_TCP, 1024 + _srcport, 0);
|
||||
|
||||
if (!::connect(_sock, _ip, _port))
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue