diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-05-23 20:20:31 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-05-23 20:20:31 +0200 |
commit | d9a4eccaabffff6b5a690284a1707e53e5f1a531 (patch) | |
tree | 6240078f0cfff72c5da218a0a82e0836813e751e /src/op_mode/ping.py | |
parent | d749cbb1f1d37697cad463301428327c2684198b (diff) | |
download | vyos-1x-d9a4eccaabffff6b5a690284a1707e53e5f1a531.tar.gz vyos-1x-d9a4eccaabffff6b5a690284a1707e53e5f1a531.zip |
ping: T2457: bugfix when argument is IPv6 address
Diffstat (limited to 'src/op_mode/ping.py')
-rwxr-xr-x | src/op_mode/ping.py | 2 |
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 |