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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user