fix renamed proc in rendezvous_server
This commit is contained in:
parent
06465c93cd
commit
a0125d7d80
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue