mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01:00
Trying out vhost stuff.
This commit is contained in:
parent
625043c4e1
commit
a2dfa3bd15
@ -824,6 +824,10 @@ registerGlobalValue(supybot.protocols.irc, 'umodes',
|
|||||||
networks allow +x, which indicates to the auth services on those networks
|
networks allow +x, which indicates to the auth services on those networks
|
||||||
that you should be given a fake host."""))
|
that you should be given a fake host."""))
|
||||||
|
|
||||||
|
registerGlobalValue(supybot.protocols.irc, 'vhost',
|
||||||
|
registry.String('', """Determines what vhost the bot will bind to before
|
||||||
|
connecting to the IRC server."""))
|
||||||
|
|
||||||
registerGlobalValue(supybot.protocols.irc, 'maxHistoryLength',
|
registerGlobalValue(supybot.protocols.irc, 'maxHistoryLength',
|
||||||
registry.Integer(1000, """Determines how many old messages the bot will
|
registry.Integer(1000, """Determines how many old messages the bot will
|
||||||
keep around in its history. Changing this variable will not take effect
|
keep around in its history. Changing this variable will not take effect
|
||||||
|
@ -109,7 +109,8 @@ class SupyReconnectingFactory(ReconnectingClientFactory, drivers.ServersMixin):
|
|||||||
self.irc = irc
|
self.irc = irc
|
||||||
drivers.ServersMixin.__init__(self, irc)
|
drivers.ServersMixin.__init__(self, irc)
|
||||||
(server, port) = self._getNextServer()
|
(server, port) = self._getNextServer()
|
||||||
reactor.connectTCP(server, port, self)
|
vhost = conf.supybot.protocols.irc.vhost()
|
||||||
|
reactor.connectTCP(server, port, self, bindAddress=(vhost, 0))
|
||||||
|
|
||||||
def clientConnectionFailed(self, connector, r):
|
def clientConnectionFailed(self, connector, r):
|
||||||
drivers.log.connectError(self.currentServer, errorMsg(r))
|
drivers.log.connectError(self.currentServer, errorMsg(r))
|
||||||
|
Loading…
Reference in New Issue
Block a user