Use Host afterall

This commit is contained in:
Neil Alexander 2022-11-18 12:42:40 +00:00
parent 877a485974
commit 598368d2b4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -552,7 +552,7 @@ func Register(
} }
var r registerRequest var r registerRequest
host := gomatrixserverlib.ServerName(req.Header.Get("Host")) host := gomatrixserverlib.ServerName(req.Host)
logrus.Infof("Getting virtual host for %q", host) logrus.Infof("Getting virtual host for %q", host)
if v := cfg.Matrix.VirtualHostForHTTPHost(host); v != nil { if v := cfg.Matrix.VirtualHostForHTTPHost(host); v != nil {
r.ServerName = v.ServerName r.ServerName = v.ServerName