Don't require ipaddress and netmask if DHCP is enabled

This fixes issue #10 for me