diff --git a/internal/config/config.go b/internal/config/config.go index f4d771f..79c5dc1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -25,9 +25,9 @@ func GetHost() string { } ips, err := getLocalIPs() 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 { diff --git a/internal/modules/link/service.go b/internal/modules/link/service.go index 38c8e99..172d840 100644 --- a/internal/modules/link/service.go +++ b/internal/modules/link/service.go @@ -12,5 +12,5 @@ func NewLinkService() ILinkService { } 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) }