This commit is contained in:
Владимир Фёдоров 2026-03-02 01:46:33 +07:00
parent 3b9c77b422
commit 4280d5376a
2 changed files with 3 additions and 3 deletions

View File

@ -25,9 +25,9 @@ func GetHost() string {
} }
ips, err := getLocalIPs() ips, err := getLocalIPs()
if err != nil || len(ips) == 0 { if err != nil || len(ips) == 0 {
return "127.0.0.1" + ClientPort return "http://127.0.0.1" + ClientPort
} }
return ips[0] + ClientPort return "http://" + ips[0] + ClientPort
} }
func getFilepath(env string, defaultFilepath string) string { func getFilepath(env string, defaultFilepath string) string {

View File

@ -12,5 +12,5 @@ func NewLinkService() ILinkService {
} }
func (s *service) GetTeamClientLink(host string, name string, password string) string { func (s *service) GetTeamClientLink(host string, name string, password string) string {
return fmt.Sprintf("http://%s?name=%s&password=%s", host, url.PathEscape(name), password) return fmt.Sprintf("%s?name=%s&password=%s", host, url.PathEscape(name), password)
} }