fix default acl

This commit is contained in:
afeiszli
2022-09-19 16:20:58 -04:00
parent a6eac84e51
commit def1487bcf

View File

@@ -421,6 +421,10 @@ func SetNodeDefaults(node *models.Node) {
node.ExpirationDateTime = time.Now().Unix() + models.TEN_YEARS_IN_SECONDS
if node.DefaultACL == "" && node.IsServer != "yes" {
node.DefaultACL = parentNetwork.DefaultACL
}
if node.ListenPort == 0 {
node.ListenPort = parentNetwork.DefaultListenPort
}