Skip to content

Commit

Permalink
fix config public ip for tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Su committed Nov 27, 2023
1 parent c0ed3bb commit 92006a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/tunnelengine/tunnelagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func (c *TunnelHandler) configGatewayPublicIP(gateway *v1beta1.Gateway) error {
return err
}
for k, v := range apiGw.Spec.Endpoints {
if v.NodeName == c.nodeName {
if v.NodeName == c.nodeName && v.Type == v1beta1.Tunnel {
apiGw.Spec.Endpoints[k].PublicIP = publicIP
err = c.ravenClient.Update(context.Background(), &apiGw)
return err
Expand Down

0 comments on commit 92006a6

Please sign in to comment.