Browse Source

fix #10

windows^2
Florian N 12 years ago
parent
commit
9c090fd80c
  1. 2
      main/views.py

2
main/views.py

@ -71,7 +71,7 @@ def get_ipaddress():
Get the IP Address
"""
try:
pipe = os.popen(" ip addr | grep -A3 'UP' | awk '{printf \"%s,\",$2}'|awk -F,, '{print $1, $2, $3}'")
pipe = os.popen(" ip addr | grep -A3 'LOWER_UP' | awk '{printf \"%s,\",$2}'|awk -F,, '{print $1, $2, $3}'")
data = pipe.read().strip().split(' ')
pipe.close()

Loading…
Cancel
Save