mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-15 18:08:30 -07:00
14 lines
338 B
Awk
14 lines
338 B
Awk
# Don't consider the HTTPS hostname since the enforced HTTPS redirection should
|
|
# work if the SSL check skipped. See file docker/healthcheck.sh.
|
|
/^bind_host:/ { host = $2 }
|
|
|
|
/^bind_port:/ { port = $2 }
|
|
|
|
END {
|
|
if (match(host, ":")) {
|
|
print "http://[" host "]:" port
|
|
} else {
|
|
print "http://" host ":" port
|
|
}
|
|
}
|