Make user.getNetwork handle Network.Name

This commit is contained in:
Simon Ser 2020-04-01 15:02:59 +02:00
parent 886e2d3cf2
commit 1f11976e7a
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -146,6 +146,9 @@ func (u *user) getNetwork(name string) *network {
if network.Addr == name { if network.Addr == name {
return network return network
} }
if network.Name != "" && network.Name == name {
return network
}
} }
return nil return nil
} }