Merge pull request #1607 from gravitl/bugfix_v0.16.1_ingress-egress

Bugfix v0.16.1 ingress egress
This commit is contained in:
Alex Feiszli
2022-10-03 09:06:25 -04:00
committed by GitHub

View File

@@ -88,12 +88,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
} }
} }