puniaze / PortDog

GNU General Public License v2.0
136 stars 35 forks source link

IndexError: list index out of range #4

Open urobasa opened 8 years ago

urobasa commented 8 years ago

Traceback (most recent call last): File "portdog.py", line 63, in LANip = commands.getoutput("/sbin/ifconfig").split("\n")[1].split()[1][5:] IndexError: list index out of range

ifconfig ae0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=82018<VLAN_MTU,VLAN_HWTAGGING,WOL_MAGIC,LINKSTATE> ether 00:1b:fc:b0:08:93 inet 194.150.\ netmask 0xffffff00 broadcast 194.150. inet6 fe80::21b:fc ae0 prefixlen 64 scopeid 0x1 nd6 options=1 media: Ethernet autoselect (100baseTX ) status: active fxp0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=4209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO> ether 00:02:b3:cd:33:ee inet 192.168.\ netmask 0xffffff00 broadcast 192.168. inet6 fe80::202:b3ff: fxp0 prefixlen 64 scopeid 0x2 nd6 options=1 media: Ethernet autoselect (100baseTX ) status: active fxp1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8 ether 00:a0:c9:22:b0:b4 inet 178.21.\ netmask 0xfffffff0 broadcast 178.21. inet6 fe80::2a0:c9 fxp1 prefixlen 64 scopeid 0x3 nd6 options=1 media: Ethernet autoselect (100baseTX ) status: active enc0: flags=41<UP,RUNNING> metric 0 mtu 1536 pfsync0: flags=0<> metric 0 mtu 1460 syncpeer: 224.0.* maxupd: 128 syncok: 1 lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 options=3<RXCSUM,TXCSUM> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x6 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> pflog0: flags=100 metric 0 mtu 33192 gre1: flags=9051<UP,POINTOPOINT,RUNNING,LINK0,MULTICAST> metric 0 mtu 1476 tunnel inet 178.21.* --> 95.167. inet 198.18.* --> 198.18.* netmask 0xfffffffc inet6 fe80::21b:fcff:fe gre1 prefixlen 64 scopeid 0x9 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> gre0: flags=9051<UP,POINTOPOINT,RUNNING,LINK0,MULTICAST> metric 0 mtu 1476 tunnel inet 194.150.\ --> 95.167.* inet 198.18.* --> 198.18.* netmask 0xfffffffc inet6 fe80::21b:fcff gre0 prefixlen 64 scopeid 0x8 nd6 options=3<PERFORMNUD,ACCEPT_RTADV> ovpns1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1500 options=80000 inet6 fe80::21b:fcff:fe ovpns1 prefixlen 64 scopeid 0xa inet 10.10.* --> 10.10.\ netmask 0xffffffff nd6 options=3<PERFORMNUD,ACCEPT_RTADV> Opened by PID 34396

puniaze commented 8 years ago

It seems to be your ifconfig output different than i thought . Could u paste here your ifconfig output+OS name and version BTW, sorry for late response