mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 19:33:09 -06:00
Merge branch 'bindpatch' of github.com:aditsachde/dendrite into bindpatch
This commit is contained in:
commit
8ff707d1e3
|
|
@ -151,7 +151,8 @@ func (b *BaseDendrite) CreateFederationClient() *gomatrixserverlib.FederationCli
|
||||||
// SetupAndServeHTTP sets up the HTTP server to serve endpoints registered on
|
// SetupAndServeHTTP sets up the HTTP server to serve endpoints registered on
|
||||||
// ApiMux under /api/ and adds a prometheus handler under /metrics.
|
// ApiMux under /api/ and adds a prometheus handler under /metrics.
|
||||||
func (b *BaseDendrite) SetupAndServeHTTP(bindaddr string, listenaddr string) {
|
func (b *BaseDendrite) SetupAndServeHTTP(bindaddr string, listenaddr string) {
|
||||||
|
// If a separate bind address is defined, listen on that. Otherwise use
|
||||||
|
// the listen address
|
||||||
var addr string
|
var addr string
|
||||||
if bindaddr != "" {
|
if bindaddr != "" {
|
||||||
addr = bindaddr
|
addr = bindaddr
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue