mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-04 16:44:11 +01:00
irclib: Ignore 'sts' in case of missing keys instead of aborting the connection.
In case https://github.com/ircv3/ircv3-specifications/pull/390 gets adopted.
This commit is contained in:
parent
76ead86e2c
commit
6c4a8edb9c
@ -1565,8 +1565,11 @@ class Irc(IrcCommandDispatcher, log.Firewalled):
|
|||||||
parsed_policy = ircutils.parseStsPolicy(
|
parsed_policy = ircutils.parseStsPolicy(
|
||||||
log, policy, parseDuration=secure_connection)
|
log, policy, parseDuration=secure_connection)
|
||||||
if parsed_policy is None:
|
if parsed_policy is None:
|
||||||
# There was an error (and it was logged). Abort the connection.
|
# There was an error (and it was logged). Ignore it and proceed
|
||||||
self.driver.reconnect(wait=True)
|
# with the connection.
|
||||||
|
# Currently this shouldn't happen, but let's future-proof it, eg.
|
||||||
|
# in case https://github.com/ircv3/ircv3-specifications/pull/390
|
||||||
|
# gets adopted.
|
||||||
return
|
return
|
||||||
|
|
||||||
if secure_connection:
|
if secure_connection:
|
||||||
|
Loading…
Reference in New Issue
Block a user