Use Host afterall
This commit is contained in:
parent
877a485974
commit
598368d2b4
|
@ -552,7 +552,7 @@ func Register(
|
|||
}
|
||||
|
||||
var r registerRequest
|
||||
host := gomatrixserverlib.ServerName(req.Header.Get("Host"))
|
||||
host := gomatrixserverlib.ServerName(req.Host)
|
||||
logrus.Infof("Getting virtual host for %q", host)
|
||||
if v := cfg.Matrix.VirtualHostForHTTPHost(host); v != nil {
|
||||
r.ServerName = v.ServerName
|
||||
|
|
Loading…
Reference in a new issue