diff options
Diffstat (limited to 'adb/sysdeps_win32.cpp')
-rw-r--r-- | adb/sysdeps_win32.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/adb/sysdeps_win32.cpp b/adb/sysdeps_win32.cpp index 4d6cf3de5..d9cc36f83 100644 --- a/adb/sysdeps_win32.cpp +++ b/adb/sysdeps_win32.cpp @@ -920,7 +920,8 @@ static int _network_server(int port, int type, u_long interface_address, std::st return fd; } -int network_loopback_server(int port, int type, std::string* error) { +int network_loopback_server(int port, int type, std::string* error, bool prefer_ipv4) { + // TODO implement IPv6 support on windows return _network_server(port, type, INADDR_LOOPBACK, error); } @@ -1132,7 +1133,7 @@ int adb_socketpair(int sv[2]) { int local_port = -1; std::string error; - server = network_loopback_server(0, SOCK_STREAM, &error); + server = network_loopback_server(0, SOCK_STREAM, &error, true); if (server < 0) { D("adb_socketpair: failed to create server: %s", error.c_str()); goto fail; |