pydhcplib is not terribly pythonic
[invirt/packages/invirt-dhcp.git] / invirt-dhcpserver
index 1f57a8d..e7f37e8 100755 (executable)
@@ -262,7 +262,7 @@ if '__main__' == __name__:
         print "invirt-dhcpserver: cannot determine local IP address by looking up %s" % socket.gethostname()
         sys.exit(1)
     
-    dhcp_options['server_identifier'] = ipv4(myip)
+    dhcp_options['server_identifier'] = ipv4(myip).int()
 
     backend = DhcpBackend()
     server = DhcpServer(backend, options)