Fix non-NM IP4 address detection
This commit is contained in:
parent
c1fc93b2af
commit
8c70ff2d86
@ -60,6 +60,9 @@ class IP4AddressMonitor(gobject.GObject):
|
||||
|
||||
sys_bus = dbus.SystemBus()
|
||||
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):
|
||||
if pspec.name == "address":
|
||||
|
Loading…
Reference in New Issue
Block a user