Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ident address configurable #435

Merged
merged 1 commit into from
May 22, 2017
Merged

Conversation

silkeh
Copy link
Contributor

@silkeh silkeh commented May 16, 2017

This adds a configuration option for the listen address for incoming ident requests.

lib/irc/ident.js Outdated
@@ -20,7 +20,8 @@ var net = require('net');
var log = require("../logging").get("irc-ident");

var config = {
port: 113
port: 113,
adddress: "0.0.0.0"
Copy link
Member

Choose a reason for hiding this comment

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

adddress

@@ -321,6 +321,9 @@ ircService:
# on instead of 113 here.
# Default: 113.
port: 1113
# The address to listen on for incoming ident requests.
# Default: 0.0.0.0
address: "::"
Copy link
Member

Choose a reason for hiding this comment

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

If you run this on a machine which does not support IPv6, does this work? I suspect it will fall over, so I would prefer if this value were set to "0.0.0.0" instead. The docs aren't super clear either way.

Copy link
Contributor Author

@silkeh silkeh May 19, 2017

Choose a reason for hiding this comment

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

:: binds for both IPv6 and IPv4 on most operating systems (including Linux and macOS). In which case this works on a machine that doesn't have an IPv6 address.
Also see the conversation for matrix-org/synapse#2232.

Copy link
Member

Choose a reason for hiding this comment

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

SGTM

@kegsay
Copy link
Member

kegsay commented May 22, 2017

LGTM, thanks!

@kegsay kegsay merged commit e967d4e into matrix-org:develop May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants