forked from extern/smegmesh
main
- Bugfix in client where "-" was attempted to be parsed as a UDP addr
This commit is contained in:
parent
58439fcd56
commit
77aac5534b
@ -91,7 +91,11 @@ func (m *WgMeshConfigApplyer) convertMeshNode(params convertMeshNodeParams) (*wg
|
|||||||
return p.PublicKey.String() == pubKey.String()
|
return p.PublicKey.String() == pubKey.String()
|
||||||
})
|
})
|
||||||
|
|
||||||
endpoint, err := net.ResolveUDPAddr("udp", params.node.GetWgEndpoint())
|
var endpoint *net.UDPAddr = nil
|
||||||
|
|
||||||
|
if params.node.GetType() == conf.PEER_ROLE {
|
||||||
|
endpoint, err = net.ResolveUDPAddr("udp", params.node.GetWgEndpoint())
|
||||||
|
}
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user