diff --git a/iprbench/util.py b/iprbench/util.py index 8360657..9ec4b06 100644 --- a/iprbench/util.py +++ b/iprbench/util.py @@ -66,12 +66,12 @@ def get_ip(): try: # doesn't even have to be reachable s.connect(('10.254.254.254', 1)) - IP = s.getsockname()[0] + ip_address = s.getsockname()[0] except Exception: - IP = '127.0.0.1' + ip_address = '127.0.0.1' finally: s.close() - return IP + return ip_address VlanId = str # eg 'SIMPA', 'REC_PHYS'