Browse Source

eliminate extra ; when creating ingress followed by egress

Matthew R. Kasun 2 years ago
parent
commit
24f78b172e
1 changed files with 2 additions and 2 deletions
  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 node.PostUp != "" {
 		if !strings.Contains(node.PostUp, postUpCmd) {
 		if !strings.Contains(node.PostUp, postUpCmd) {
-			postUpCmd = node.PostUp + " ; " + postUpCmd
+			postUpCmd = node.PostUp + postUpCmd
 		}
 		}
 	}
 	}
 	if node.PostDown != "" {
 	if node.PostDown != "" {
 		if !strings.Contains(node.PostDown, postDownCmd) {
 		if !strings.Contains(node.PostDown, postDownCmd) {
-			postDownCmd = node.PostDown + " ; " + postDownCmd
+			postDownCmd = node.PostDown + postDownCmd
 		}
 		}
 	}
 	}