Fix bad refactor

This commit is contained in:
Christian Müller 2019-05-16 17:16:45 +02:00
parent 3eddf987a8
commit 30a232a612
2 changed files with 2 additions and 2 deletions

View file

@ -139,7 +139,7 @@ func (d *device) GetState() NmDeviceState {
} }
func (d *device) GetIP4Config() IP4Config { func (d *device) GetIP4Config() IP4Config {
path := d.getObjectProperty(DevicePropertyIp4Address) path := d.getObjectProperty(DevicePropertyIp4Config)
if path == "/" { if path == "/" {
return nil return nil
} }

View file

@ -3,7 +3,7 @@ gonetworkmanager
Go D-Bus bindings for NetworkManager. Go D-Bus bindings for NetworkManager.
Currently tested with NetworkManager 0.9.8.10. Currently tested with NetworkManager 1.16.0.
[![GoDoc](https://godoc.org/github.com/BellerophonMobile/gonetworkmanager?status.svg)](https://godoc.org/github.com/BellerophonMobile/gonetworkmanager) [![GoDoc](https://godoc.org/github.com/BellerophonMobile/gonetworkmanager?status.svg)](https://godoc.org/github.com/BellerophonMobile/gonetworkmanager)