Update DHCP.py

FindLocalIP also wan't OURIP variable as input, reading that source it's allowed to be None (only on OSX it might hold some value)
QuickFix to make DHCP.py work again.
This commit is contained in:
Mark Bergman (xychix) 2016-09-26 13:22:03 +02:00 committed by GitHub
commit 4c5d29dfb4

View file

@ -74,7 +74,7 @@ config.read(os.path.join(BASEDIR,'Responder.conf'))
RespondTo = filter(None, [x.upper().strip() for x in config.get('Responder Core', 'RespondTo').strip().split(',')])
DontRespondTo = filter(None, [x.upper().strip() for x in config.get('Responder Core', 'DontRespondTo').strip().split(',')])
Interface = options.Interface
Responder_IP = FindLocalIP(Interface)
Responder_IP = FindLocalIP(Interface, None)
ROUTERIP = options.RouterIP
NETMASK = options.Netmask
DHCPSERVER = Responder_IP