Skip to content

Commit e3eafe4

Browse files
committed
AsyncServer: *actually* use the resolved address.
1 parent 6817890 commit e3eafe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AndroidAsync/src/com/koushikdutta/async/AsyncServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public void onCompleted(Exception e, InetAddress result) {
386386
return;
387387
}
388388

389-
ret.setComplete(connectResolvedInetSocketAddress(new InetSocketAddress(remote.getHostName(), remote.getPort()), callback));
389+
ret.setComplete(connectResolvedInetSocketAddress(new InetSocketAddress(result, remote.getPort()), callback));
390390
}
391391
});
392392
return ret;

0 commit comments

Comments
 (0)