فهرست منبع

do not reverse host when socket connection failed (closes #2219)

Simon Krajewski 12 سال پیش
والد
کامیت
47d7a6a765
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      std/cpp/_std/sys/net/Socket.hx
  2. 1 1
      std/neko/_std/sys/net/Socket.hx

+ 1 - 1
std/cpp/_std/sys/net/Socket.hx

@@ -157,7 +157,7 @@ class Socket {
 			socket_connect(__s, host.ip, port);
 		} catch( s : String ) {
 			if( s == "std@socket_connect" )
-				throw "Failed to connect on "+(try host.reverse() catch( e : Dynamic ) host.toString())+":"+port;
+				throw "Failed to connect on "+host.toString()+":"+port;
 			else
 				cpp.Lib.rethrow(s);
 		}

+ 1 - 1
std/neko/_std/sys/net/Socket.hx

@@ -150,7 +150,7 @@ class Socket {
 			socket_connect(__s, host.ip, port);
 		} catch( s : String ) {
 			if( s == "std@socket_connect" )
-				throw "Failed to connect on "+(try host.reverse() catch( e : Dynamic ) host.toString())+":"+port;
+				throw "Failed to connect on "+host.toString()+":"+port;
 			else
 				neko.Lib.rethrow(s);
 		}