summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsand <daniel@spatof.org>2013-05-16 15:01:17 (GMT)
committer sand <daniel@spatof.org>2013-05-16 15:01:17 (GMT)
commit259e1ebaafbe82dfe7933f16788ceee50d0e778b (patch)
tree2455c12a7ba75f47fc8350a6151213d9eaaf9363
parent732831f0ad77c5c00887db2bd03d4c945e7d017b (diff)
supporto config ssl
-rw-r--r--pinolo/config.py10
-rw-r--r--sample.cfg4
2 files changed, 13 insertions, 1 deletions
diff --git a/pinolo/config.py b/pinolo/config.py
index 7cf802a..7817818 100644
--- a/pinolo/config.py
+++ b/pinolo/config.py
@@ -40,6 +40,16 @@ def read_config_file(filename):
for opt in ('channels',):
server_config[opt] = r_comma.split(server_config[opt])
+
+ for opt in ('ssl', 'ssl_verify'):
+ if not opt in server_config:
+ server_config[opt] = False
+ continue
+
+ if server_config[opt] in ("true", "1", "True"):
+ server_config[opt] = True
+ else:
+ server_config[opt] = False
config['servers'][server_name] = server_config
diff --git a/sample.cfg b/sample.cfg
index 1fd1cc1..a357b77 100644
--- a/sample.cfg
+++ b/sample.cfg
@@ -19,4 +19,6 @@ channels = #test
# hostname = example.com
# port = 6667
# channels = #foo, #bar
-# nickserv = my_password \ No newline at end of file
+# nickserv = my_password
+# ssl = true
+# ssl_verify = true \ No newline at end of file