generated from VLADIMIR/template
fix
This commit is contained in:
parent
3b9c77b422
commit
4280d5376a
@ -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 {
|
||||||
|
|||||||
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user