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()
|
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
|
||||||
|
|
Loading…
Reference in New Issue