mirror of
https://github.com/apple/swift-nio
synced 2026-11-28 05:14:23 +00:00
Allow to obtain remote and local address
This commit is contained in:
1 parent
0684750261
commit
16e0ffd9bf
3 files changed
+30
-4
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user