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