add FIXME
This commit is contained in:
parent
a191de4452
commit
7c9940b3b9
|
@ -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:"))
|
||||
|
|
Loading…
Reference in New Issue