mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 00:08:58 +08:00
return string(ip) instead of empty string on error
This commit is contained in:
parent
56c9ea5430
commit
ab72e92fc6
@ -62,7 +62,7 @@ func getOutboundIP() string {
|
||||
resp, err := http.Get("https://api.ipify.org?format=text")
|
||||
|
||||
if err != nil {
|
||||
return ""
|
||||
return string(ip)
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
|
Loading…
x
Reference in New Issue
Block a user