Skip to content

Commit

Permalink
set proto to zero to get relevant ip
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Jun 7, 2024
1 parent 8883748 commit 717fd93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ func holePunchWgPort() (pubIP net.IP, pubPort int, natType string) {
portToStun := config.Netclient().ListenPort
pubIP, pubPort, natType = stun.HolePunch(portToStun)
if pubIP == nil { // if stun has failed fallback to ip service to get publicIP
publicIP, err := GetPublicIP(4)
publicIP, err := GetPublicIP(0)
if err != nil {
slog.Error("failed to get publicIP", "error", err)
return
Expand Down

0 comments on commit 717fd93

Please sign in to comment.