mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
fix default acl
This commit is contained in:
@@ -421,6 +421,10 @@ func SetNodeDefaults(node *models.Node) {
|
|||||||
|
|
||||||
node.ExpirationDateTime = time.Now().Unix() + models.TEN_YEARS_IN_SECONDS
|
node.ExpirationDateTime = time.Now().Unix() + models.TEN_YEARS_IN_SECONDS
|
||||||
|
|
||||||
|
if node.DefaultACL == "" && node.IsServer != "yes" {
|
||||||
|
node.DefaultACL = parentNetwork.DefaultACL
|
||||||
|
}
|
||||||
|
|
||||||
if node.ListenPort == 0 {
|
if node.ListenPort == 0 {
|
||||||
node.ListenPort = parentNetwork.DefaultListenPort
|
node.ListenPort = parentNetwork.DefaultListenPort
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user