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:"))