From d9a4eccaabffff6b5a690284a1707e53e5f1a531 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 23 May 2020 20:20:31 +0200 Subject: ping: T2457: bugfix when argument is IPv6 address --- src/op_mode/ping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/op_mode/ping.py') diff --git a/src/op_mode/ping.py b/src/op_mode/ping.py index f3b3ee914..e56952c38 100755 --- a/src/op_mode/ping.py +++ b/src/op_mode/ping.py @@ -210,7 +210,7 @@ if __name__ == '__main__': try: ip = socket.gethostbyname(host) except socket.gaierror: - sys.exit(f'ping: Unknown host: {host}') + ip = host try: version = ipaddress.ip_address(ip).version -- cgit v1.2.3