fix renamed proc in rendezvous_server

This commit is contained in:
Christian Ulrich 2020-10-12 21:37:22 +02:00
parent 06465c93cd
commit a0125d7d80
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ proc sendEndpoint(client: AsyncSocket, requestId: string) {.async.} =
let (address, port) = client.getPeerAddr() let (address, port) = client.getPeerAddr()
var ipAddr = parseIpAddress(address) var ipAddr = parseIpAddress(address)
if ipAddr.isPrivateIp() and if ipAddr.isPrivateIp() and
ipAddr.isInNetwork(fromIpAddress(getPrimaryIPAddr(ipAddr))): ipAddr.isInNetwork(getNetworkInterface(getPrimaryIPAddr(ipAddr))):
ipAddr = await probePublicIp() ipAddr = await probePublicIp()
await client.send(&"ok|{requestId}|{ipAddr}|{port.int}\n") await client.send(&"ok|{requestId}|{ipAddr}|{port.int}\n")
client.close client.close