From 1f11976e7a02b12c44ef6148c802ca4ecbd73732 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 1 Apr 2020 15:02:59 +0200 Subject: [PATCH] Make user.getNetwork handle Network.Name --- user.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/user.go b/user.go index 9e05ac3..09e0d6b 100644 --- a/user.go +++ b/user.go @@ -146,6 +146,9 @@ func (u *user) getNetwork(name string) *network { if network.Addr == name { return network } + if network.Name != "" && network.Name == name { + return network + } } return nil }