mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
dded code to Socket driver to make sure it refuses to connect when network.ssl is set to True
This commit is contained in:
parent
eab237da47
commit
df2336505d
@ -63,6 +63,11 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
|
|||||||
self.connected = False
|
self.connected = False
|
||||||
self.reconnectWaitsIndex = 0
|
self.reconnectWaitsIndex = 0
|
||||||
self.reconnectWaits = reconnectWaits
|
self.reconnectWaits = reconnectWaits
|
||||||
|
#Only connect to non-SSL servers
|
||||||
|
if self.networkGroup.get('ssl').value:
|
||||||
|
drivers.log.error('The Socket driver can not connect to SSL \
|
||||||
|
servers. Stopping.')
|
||||||
|
else:
|
||||||
self.connect()
|
self.connect()
|
||||||
|
|
||||||
def _getNextServer(self):
|
def _getNextServer(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user