diff options
Diffstat (limited to 'main.nim')
-rw-r--r-- | main.nim | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ proc main() = | |||
70 | of "max": max = parseInt(val) | 70 | of "max": max = parseInt(val) |
71 | 71 | ||
72 | of "ping": | 72 | of "ping": |
73 | let targetIp = parseIpAddress(val) | 73 | let targetIp = resolve(val) |
74 | let mon = initPingMonitor(targetIp, procIdent()) | 74 | let mon = initPingMonitor(targetIp, procIdent()) |
75 | probe = (timeout: Duration) => mon.ping(timeout).inMilliseconds.int | 75 | probe = (timeout: Duration) => mon.ping(timeout).inMilliseconds.int |
76 | 76 | ||