From 2f2ebdcf356c25f4aae2bd54293a4105474fdda8 Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Mon, 25 Nov 2024 14:52:33 +0100 Subject: [PATCH] fixed minor styling issue --- iprbench/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'