Update utils.py

Set default value for 2nd input var on FindLocalIP in order to maintain (backwards)compatibility with DHCP.py (call's with 1 param).
This commit is contained in:
Mark Bergman (xychix) 2016-09-26 13:26:51 +02:00 committed by GitHub
commit de469b36a9

View file

@ -96,7 +96,7 @@ def OsInterfaceIsSupported():
def IsOsX():
return sys.platform == "darwin"
def FindLocalIP(Iface, OURIP):
def FindLocalIP(Iface, OURIP=None):
if Iface == 'ALL':
return '0.0.0.0'