浏览代码

eliminate extra ; when creating ingress followed by egress

Matthew R. Kasun 3 年之前
父节点
当前提交
24f78b172e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      logic/gateway.go

+ 2 - 2
logic/gateway.go

@@ -87,12 +87,12 @@ func CreateEgressGateway(gateway models.EgressGatewayRequest) (models.Node, erro
 	}
 	if node.PostUp != "" {
 		if !strings.Contains(node.PostUp, postUpCmd) {
-			postUpCmd = node.PostUp + " ; " + postUpCmd
+			postUpCmd = node.PostUp + postUpCmd
 		}
 	}
 	if node.PostDown != "" {
 		if !strings.Contains(node.PostDown, postDownCmd) {
-			postDownCmd = node.PostDown + " ; " + postDownCmd
+			postDownCmd = node.PostDown + postDownCmd
 		}
 	}