mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 22:03:10 -06:00
Don't set up external listener if no address configured
This commit is contained in:
parent
e02be084a3
commit
55df0bd374
|
|
@ -280,7 +280,7 @@ func (b *BaseDendrite) SetupAndServeHTTP(internalHTTPAddr, externalHTTPAddr conf
|
|||
}
|
||||
externalServ := internalServ
|
||||
|
||||
if externalAddr != internalAddr {
|
||||
if externalAddr != "" && externalAddr != internalAddr {
|
||||
externalRouter = mux.NewRouter()
|
||||
externalServ = &http.Server{
|
||||
Addr: string(externalAddr),
|
||||
|
|
|
|||
Loading…
Reference in a new issue