mirror of
https://github.com/gryf/wicd.git
synced 2025-12-24 23:22:27 +01:00
Fix stupid bug with multiple pattern regex
This commit is contained in:
@@ -728,7 +728,7 @@ class BaseInterface(object):
|
||||
output = ifconfig
|
||||
# check multiple ifconfig output styles
|
||||
for pat in [ip_pattern, ip_pattern1]:
|
||||
m = misc.RunRegex(ip_pattern, output)
|
||||
m = misc.RunRegex(pat, output)
|
||||
if m: return m
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user