diff options
author | euxane | 2024-11-24 17:17:02 +0100 |
---|---|---|
committer | euxane | 2024-11-24 17:17:02 +0100 |
commit | ece6c54f1b4db27abac52ee3c627f619d1090544 (patch) | |
tree | f59c3b8f15e7f4f7ebd5521969637beae4c26025 /main.nim | |
parent | a2d15bdd78f071549d46aa6ac5467a8a8cf6ebbd (diff) | |
download | tickwatch-ece6c54f1b4db27abac52ee3c627f619d1090544.tar.gz |
ping: add hostname resolution
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 | ||