From ece6c54f1b4db27abac52ee3c627f619d1090544 Mon Sep 17 00:00:00 2001 From: euxane Date: Sun, 24 Nov 2024 17:17:02 +0100 Subject: ping: add hostname resolution --- main.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.nim') diff --git a/main.nim b/main.nim index 04a81f1..be77427 100644 --- a/main.nim +++ b/main.nim @@ -70,7 +70,7 @@ proc main() = of "max": max = parseInt(val) of "ping": - let targetIp = parseIpAddress(val) + let targetIp = resolve(val) let mon = initPingMonitor(targetIp, procIdent()) probe = (timeout: Duration) => mon.ping(timeout).inMilliseconds.int -- cgit v1.2.3