Ver código fonte

eliminate extra ; when creating ingress followed by egress

Matthew R. Kasun 3 anos atrás
pai
commit
d3eb15f566
1 arquivos alterados com 2 adições e 2 exclusões
  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
 		}
 	}