mirror of
https://github.com/gryf/wicd.git
synced 2026-01-03 12:24:14 +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.
|
The IP address of the interface in dotted quad form.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
if not self.iface: return ""
|
||||||
if not ifconfig:
|
if not ifconfig:
|
||||||
cmd = 'ifconfig ' + self.iface
|
cmd = 'ifconfig ' + self.iface
|
||||||
if self.verbose: print cmd
|
if self.verbose: print cmd
|
||||||
|
|||||||
Reference in New Issue
Block a user