Skip to content

Commit

Permalink
Merge pull request #151 from River-sh/fix_auto_config_publicIP
Browse files Browse the repository at this point in the history
fix config public ip for tunnel
  • Loading branch information
njucjc authored Nov 30, 2023
2 parents c0ed3bb + 92006a6 commit e63074c
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 e63074c

Please sign in to comment.