daemon: removed need to use getaddr for CoreInterface.othernet as it now has a default of None

This commit is contained in:
Blake Harnden 2020-06-11 19:12:51 -07:00
parent 00cda5c550
commit e72e332bab

View file

@ -1040,7 +1040,7 @@ class CoreNetworkBase(NodeBase):
:return: interface the provided network is linked to
"""
for netif in self.netifs():
if getattr(netif, "othernet", None) == net:
if netif.othernet == net:
return netif
return None