aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Network.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
index 444269fb..99afb75d 100644
--- a/lib/python/Components/Network.py
+++ b/lib/python/Components/Network.py
@@ -123,7 +123,7 @@ class Network:
ipstr = [0,0,0,0]
for x in os.popen("ifconfig eth0 | grep 'inet addr:'", "r").readline().split(' '):
if x.split(':')[0] == "addr":
- ip = x.split(':')[1].split('.')
+ ipstr = x.split(':')[1].split('.')
ip = []
for x in ipstr:
ip.append(int(x))