summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-23 20:20:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-05-23 20:20:31 +0200
commitd9a4eccaabffff6b5a690284a1707e53e5f1a531 (patch)
tree6240078f0cfff72c5da218a0a82e0836813e751e /src/op_mode
parentd749cbb1f1d37697cad463301428327c2684198b (diff)
downloadvyos-1x-d9a4eccaabffff6b5a690284a1707e53e5f1a531.tar.gz
vyos-1x-d9a4eccaabffff6b5a690284a1707e53e5f1a531.zip
ping: T2457: bugfix when argument is IPv6 address
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/ping.py2
1 files changed, 1 insertions, 1 deletions
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