Skip to content

Commit

Permalink
Update server.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Jul 17, 2024
1 parent b390bf0 commit f329f48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions wap/pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,12 @@ func Serve(peerFn func(clientPeerId string, bloxSeed string) (string, error), ip
ip, err = getIPFromSpecificNetwork(ctx, config.HOTSPOT_SSID)
if err != nil {
log.Errorw("Failed to use IP of hotspot", "err", err)
ip, err = getNonLoopbackIP()
/*ip, err = getNonLoopbackIP()
if err != nil {
log.Errorw("Failed to get non-loopback IP address for serve", "err", err)
ip = "0.0.0.0"
}
}*/
ip = "127.0.0.1"
}
listenAddr = ip + ":" + port

Expand Down

0 comments on commit f329f48

Please sign in to comment.