mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-01-05 21:09:07 +01:00
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()
|
||||
})
|
||||
|
||||
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 {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user