Allow to obtain remote and local address

This commit is contained in:
Norman Maurer committed 2017-08-08 15:43:47 +02:00
1 parent 0684750261
commit 16e0ffd9bf
3 files changed
+30 -4

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ default:
let channel = try bootstrap.bind(to: host, on: port).wait()
print("Server started and listening on \(host):\(port)")
print("Server started and listening on \(channel.localAddress)")
// This will never unblock as we not close the ServerChannel
try channel.closeFuture.wait()