diff options
| author | 2018-09-17 11:38:25 +0100 | |
|---|---|---|
| committer | 2018-09-17 11:38:40 +0100 | |
| commit | c3482e78ba15ce5959c737526abc1ce155097ba2 (patch) | |
| tree | 211ce4e8ab6c1c38d8f7c68dbf2d4bddcc61aaea | |
| parent | Support EXTERNAL sasl authentication (diff) | |
| signature | ||
Add ability to not vertify a server's certificate ('ssl-verify')
| -rw-r--r-- | IRCServer.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IRCServer.py b/IRCServer.py index a94567b9..46856473 100644 --- a/IRCServer.py +++ b/IRCServer.py @@ -87,7 +87,8 @@ class Server(object): context.options |= ssl.OP_NO_TLSv1 context.load_default_certs() - context.verify_mode = ssl.CERT_REQUIRED + if self.get_setting("ssl-verify", True): + context.verify_mode = ssl.CERT_REQUIRED client_certificate = self.bot.config.get("ssl-certificate", None) client_key = self.bot.config.get("ssl-key", None) |
