Browse Source

eliminate extra ; when creating ingress followed by egress

Matthew R. Kasun 3 năm trước cách đây
mục cha
commit
24f78b172e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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
 		}
 	}