Ignore sts tokens on plain-text connections if no port
key is provided
This commit is contained in:
parent
53907b57d7
commit
807e239a2b
1 changed files with 5 additions and 4 deletions
|
@ -35,10 +35,11 @@ class Module(ModuleManager.BaseModule):
|
||||||
info = utils.parse.keyvalue(event["capabilities"][sts],
|
info = utils.parse.keyvalue(event["capabilities"][sts],
|
||||||
delimiter=",")
|
delimiter=",")
|
||||||
if not event["server"].connection_params.tls:
|
if not event["server"].connection_params.tls:
|
||||||
self.set_policy(event["server"], int(info["port"]), None)
|
if "port" in info:
|
||||||
event["server"].disconnect()
|
self.set_policy(event["server"], int(info["port"]), None)
|
||||||
self.bot.reconnect(event["server"].id,
|
event["server"].disconnect()
|
||||||
event["server"].connection_params)
|
self.bot.reconnect(event["server"].id,
|
||||||
|
event["server"].connection_params)
|
||||||
else:
|
else:
|
||||||
self.change_duration(event["server"], info)
|
self.change_duration(event["server"], info)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue