aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/Ethernet/Client.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libraries/Ethernet/Client.cpp b/libraries/Ethernet/Client.cpp
index 6c19b8f..c62e26c 100644
--- a/libraries/Ethernet/Client.cpp
+++ b/libraries/Ethernet/Client.cpp
@@ -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;