mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-07 01:54:26 +01:00
Fixing Ethernet client connect code to properly chance source port each time.
This commit is contained in:
parent
7737684ad6
commit
62505d8136
@ -33,8 +33,7 @@ uint8_t Client::connect() {
|
|||||||
|
|
||||||
_srcport++;
|
_srcport++;
|
||||||
|
|
||||||
// XXX: what port should we connect from?
|
socket(_sock, Sn_MR_TCP, 1024 + _srcport, 0);
|
||||||
socket(_sock, Sn_MR_TCP, _port, 1024 + _srcport);
|
|
||||||
|
|
||||||
if (!::connect(_sock, _ip, _port))
|
if (!::connect(_sock, _ip, _port))
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user