--- ./blueman/plugins/mechanism/Network.py.orig 2010-02-05 13:16:27.000000000 -0600 +++ ./blueman/plugins/mechanism/Network.py 2015-12-19 16:07:25.509562573 -0600 @@ -22,6 +22,9 @@ import gobject from blueman.main.NetConf import NetConf, DnsMasqHandler, DhcpdHandler +DHCPDHANDLERS = {"DnsMasqHandler": DnsMasqHandler, + "DhcpdHandler": DhcpdHandler}, + class Network(MechanismPlugin): def on_load(self): self.add_dbus_method(self.SetGN, in_signature="b", out_signature="", sender_keyword="caller") @@ -67,7 +70,7 @@ def EnableNetwork(self, ip_address, netmask, dhcp_handler, caller): nc = NetConf.get_default() nc.set_ipv4(ip_address, netmask) - eval("nc.set_dhcp_handler(%s)" % dhcp_handler) + nc.set_dhcp_handler(DHCPDHANDLERS[dhcp_handler]) nc.apply_settings() def ReloadNetwork(self, caller):