fix: use hostIp from config
All checks were successful
release-tag / release (push) Successful in 1m56s
All checks were successful
release-tag / release (push) Successful in 1m56s
This commit is contained in:
parent
e47a96a597
commit
5a40fb593c
2
main.go
2
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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user