From 7c9940b3b94a5800a06d39a892c2a2e79f2dd7dd Mon Sep 17 00:00:00 2001 From: Christian Ulrich Date: Thu, 15 Oct 2020 19:20:51 +0200 Subject: [PATCH] add FIXME --- examples/rendezvous_server/rendezvous_server.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/rendezvous_server/rendezvous_server.nim b/examples/rendezvous_server/rendezvous_server.nim index b363895..d7496af 100644 --- a/examples/rendezvous_server/rendezvous_server.nim +++ b/examples/rendezvous_server/rendezvous_server.nim @@ -46,6 +46,7 @@ proc isInNetwork(ip: IpAddress, iface: NetworkInterface): bool = (ipScalar and netmaskScalar) == (ifaceIpScalar and netmaskScalar) proc probePublicIp(): Future[IpAddress] {.async.} = + # FIXME: need more reliable solution let output = await asyncExecCmd("ping -R -c 1 -s 1 -n 193.0.14.129") let ipLines = output.splitLines() .filter(proc(l: string): bool = l.startsWith("\t") or l.startsWith("RR:"))