1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 07:02:29 +01:00

Add missing check for no interface to GetIP.

This commit is contained in:
Dan O'Reilly
2009-03-21 19:41:13 -04:00
parent 34832775c8
commit b8db5007fa

View File

@@ -577,6 +577,7 @@ class BaseInterface(object):
The IP address of the interface in dotted quad form.
"""
if not self.iface: return ""
if not ifconfig:
cmd = 'ifconfig ' + self.iface
if self.verbose: print cmd