Fix non-NM IP4 address detection

This commit is contained in:
Dan Williams 2007-05-26 14:01:25 -04:00
parent c1fc93b2af
commit 8c70ff2d86

View File

@ -60,6 +60,9 @@ class IP4AddressMonitor(gobject.GObject):
sys_bus = dbus.SystemBus() sys_bus = dbus.SystemBus()
self._watch = sys_bus.watch_name_owner(NM_SERVICE, self._nm_owner_cb) self._watch = sys_bus.watch_name_owner(NM_SERVICE, self._nm_owner_cb)
if not sys_bus.name_has_owner(NM_SERVICE):
addr = self._get_address_fallback()
self._update_address(addr)
def do_get_property(self, pspec): def do_get_property(self, pspec):
if pspec.name == "address": if pspec.name == "address":