hotfix / undefined var

This commit is contained in:
serogaq 2024-12-08 18:20:55 +03:00
parent 876045a123
commit 7de62efc6b
No known key found for this signature in database
GPG key ID: 6657A27160536D7E

View file

@ -97,7 +97,7 @@ type ServerService struct {
func getPublicIP(url string) string {
var host string
host = os.Getenv("XUI_SERVER_IP")
if host != "" && !strings.ContainsAny(str1, "6") {
if host != "" && !strings.ContainsAny(url, "6") {
return host
}