add FIXME

This commit is contained in:
Christian Ulrich 2020-10-15 19:20:51 +02:00
parent a191de4452
commit 7c9940b3b9
No known key found for this signature in database
GPG Key ID: 8241BE099775A097
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ proc isInNetwork(ip: IpAddress, iface: NetworkInterface): bool =
(ipScalar and netmaskScalar) == (ifaceIpScalar and netmaskScalar) (ipScalar and netmaskScalar) == (ifaceIpScalar and netmaskScalar)
proc probePublicIp(): Future[IpAddress] {.async.} = 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 output = await asyncExecCmd("ping -R -c 1 -s 1 -n 193.0.14.129")
let ipLines = output.splitLines() let ipLines = output.splitLines()
.filter(proc(l: string): bool = l.startsWith("\t") or l.startsWith("RR:")) .filter(proc(l: string): bool = l.startsWith("\t") or l.startsWith("RR:"))