From d524a774595746c7ca1edc947c350fd36aecd384 Mon Sep 17 00:00:00 2001 From: Alan Justino Date: Sat, 11 Jan 2014 05:28:53 -0200 Subject: [PATCH] [FIX] Not recognizing IP on interface 'tiwlanX' My Motorola Defy+ seems to use 'tiwlan0' as the network interface --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 20d10bf..fe6ec90 100644 --- a/main.py +++ b/main.py @@ -71,7 +71,7 @@ def __init__(self, **kwargs): ip = socket.gethostbyname(socket.gethostname()) if ip.startswith('127.'): interfaces = ['eth0', 'eth1', 'eth2', 'wlan0', 'wlan1', 'wifi0', - 'ath0', 'ath1', 'ppp0'] + 'tiwlan0', 'tiwlan1', 'ath0', 'ath1', 'ppp0'] for ifname in interfaces: try: ip = self.get_interface_ip(ifname)