Browse Source

fixed setting default node postdown

0xdcarns 3 năm trước cách đây
mục cha
commit
9ded75d741
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      logic/nodes.go

+ 4 - 0
logic/nodes.go

@@ -253,6 +253,10 @@ func SetNodeDefaults(node *models.Node) {
 		postup := parentNetwork.DefaultPostUp
 		node.PostUp = postup
 	}
+	if node.PostDown == "" {
+		postdown := parentNetwork.DefaultPostDown
+		node.PostDown = postdown
+	}
 	if node.IsStatic == "" {
 		node.IsStatic = "no"
 	}