mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 11:56:39 +08:00
udp hole punch
This commit is contained in:
parent
3cc3cd9a0f
commit
023d9dd3ef
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ func WriteWgConfig(node *models.Node, privateKey string, peers []wgtypes.PeerCon
|
|||
}
|
||||
wireguard := ini.Empty(options)
|
||||
wireguard.Section(section_interface).Key("PrivateKey").SetValue(privateKey)
|
||||
if node.ListenPort > 0 {
|
||||
if node.ListenPort > 0 && node.UDPHolePunch != "yes" {
|
||||
wireguard.Section(section_interface).Key("ListenPort").SetValue(strconv.Itoa(int(node.ListenPort)))
|
||||
}
|
||||
if node.Address != "" {
|
||||
|
|
Loading…
Add table
Reference in a new issue