Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add support for specifying multiple bind addresses #1709

Merged
merged 4 commits into from Dec 19, 2016

Conversation

kyrias
Copy link
Contributor

@kyrias kyrias commented Dec 18, 2016

No description provided.

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

2 similar comments
@matrixbot
Copy link
Member

Can one of the admins verify this patch?

@matrixbot
Copy link
Member

Can one of the admins verify this patch?

# The empty string will cause synapse to listen on all interfaces.
bind_address: ''
# Local addresses to listen on.
# This will listen on all IPv4 addresses by default.
Copy link
Member

@ara4n ara4n Dec 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have the example in here of how to listen on ipv6 too, even if commented out? presumably

# - '::'  # to listen on all IPv6 interfaces

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking about that, but also need to specify that having both uncommented at the same time won't work on Linux, so I was thinking about whether to document this in the default config or somewhere else?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's going to be such a common scenario (plus we want to advertise that ipv6 is here, yay!) that i suspect it's worth spelling it out (assuming you are sure that the second bind will fail?)
how about:

 # uncomment to listen on all IPv6 interfaces
 # N.B. on Linux this also listens on IPv4, so you'll need to comment out the line above.
 # - '::'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Linux you'll get an errno 98, yeah, annoyingly.

Comment added below.

@ara4n
Copy link
Member

ara4n commented Dec 18, 2016

this LGTM, modulo the minor doc change. annoying that the binding setup is copypasted over all the different workers though, but not your fault...

@ara4n ara4n mentioned this pull request Dec 18, 2016
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
@richvdh
Copy link
Member

richvdh commented Dec 19, 2016

ok to test

@ara4n
Copy link
Member

ara4n commented Dec 19, 2016

lgtm - going to merge and see what happens! thanks @kyrias!

@ara4n ara4n merged commit da2c8f3 into matrix-org:develop Dec 19, 2016
@kyrias kyrias deleted the bind_addresses branch December 20, 2016 00:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants