fix: use hostIp from config
release-tag / release (push) Successful in 1m56s Details

master v0.2.1
sati.ac 2023-07-13 23:22:11 +03:00
parent e47a96a597
commit 5a40fb593c
1 changed files with 1 additions and 1 deletions

View File

@ -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"