diff --git a/main.go b/main.go index ec8a7c8..fcd64af 100644 --- a/main.go +++ b/main.go @@ -207,7 +207,7 @@ func addDomainsToHosts(ctx *api.ApiContext) error { hosts = hostsModRE.ReplaceAll(hosts, []byte{}) // remove old entries - hostIp := "127.0.0.1" + hostIp := strings.SplitN(ctx.Config.Host, ":", 2)[0] suffix := "\r\n#sati-bridge start, DO NOT MODIFY\r\n" for _, domain := range ctx.Server.GetDomains() { suffix += hostIp + " " + domain + "\r\n"