From a0125d7d8082211074543833775ba4032213609e Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Mon, 12 Oct 2020 21:37:22 +0200 Subject: [PATCH] fix renamed proc in rendezvous_server --- examples/rendezvous_server/rendezvous_server.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index dc2d684..b363895 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -64,7 +64,7 @@ proc sendEndpoint(client: AsyncSocket, requestId: string) {.async.} = let (address, port) = client.getPeerAddr() var ipAddr = parseIpAddress(address) if ipAddr.isPrivateIp() and - ipAddr.isInNetwork(fromIpAddress(getPrimaryIPAddr(ipAddr))): + ipAddr.isInNetwork(getNetworkInterface(getPrimaryIPAddr(ipAddr))): ipAddr = await probePublicIp() await client.send(&"ok|{requestId}|{ipAddr}|{port.int}\n") client.close