diff --git a/iris.conf.example b/iris.conf.example index a7695fe..0732925 100644 --- a/iris.conf.example +++ b/iris.conf.example @@ -30,13 +30,7 @@ syslog_addr: # SYSLOG PORT: Sets the port to send syslog datagrams to, if syslog_addr is set. syslog_port: 514 -# Binds to a specific IP and port -# Use this if your machine has more than one outgoing IP -# Example: -# bind_ip: 127.0.0.1 -# bind_port: 0 -bind_ip: -bind_port: + # BACKEND IRC CONNECTION OPTIONS # These options provide the needed information for the backend to connect to @@ -53,6 +47,10 @@ port: 6667 # SSL: Use SSL to connect to IRC server or not ssl: false +# BIND IP: The (local) IP address to bind to for the IRC server connection. +# Leave unset to bind to the first applicable interface. +bind_ip: + # REALNAME: The realname field for clients connecting through the # webclient. realname: http://moo.com/ diff --git a/qwebirc/ircclient.py b/qwebirc/ircclient.py index 3eab98f..33324ee 100644 --- a/qwebirc/ircclient.py +++ b/qwebirc/ircclient.py @@ -226,11 +226,10 @@ def createIRC(*args, **kwargs): server = config.irc["server"] port = config.irc["port"] - bind_ip = config.execution["bind_ip"] - bind_port = config.execution["bind_port"] + bind_ip = config.irc["bind_ip"] bindToAddress = None if bind_ip: - bindToAddress = (bind_ip, bind_port) + bindToAddress = (bind_ip, 0) if config.irc["ssl"]: from twisted.internet.ssl import ClientContextFactory