diff options
author | Erik Johnston <erik@matrix.org> | 2015-04-17 16:08:42 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-04-17 16:08:42 +0100 |
commit | 2492efb162c90c67f26ee5de26499610f23a6c2c (patch) | |
tree | 150a7e6dd22b4c0556f500753d84ed5c25efb108 | |
parent | Update --database-path metavar to SQLITE_DATABASE_PATH (diff) | |
parent | Merge branch 'master' of github.com:matrix-org/synapse into develop (diff) | |
download | synapse-2492efb162c90c67f26ee5de26499610f23a6c2c.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into postgres
-rwxr-xr-x | register_new_matrix_user | 7 | ||||
-rw-r--r-- | synapse/__init__.py | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/register_new_matrix_user b/register_new_matrix_user index daddadc302..4a520bdb5d 100755 --- a/register_new_matrix_user +++ b/register_new_matrix_user @@ -49,7 +49,12 @@ def request_registration(user, password, server_location, shared_secret): headers={'Content-Type': 'application/json'} ) try: - f = urllib2.urlopen(req) + if sys.version_info[:3] >= (2, 7, 9): + # As of version 2.7.9, urllib2 now checks SSL certs + import ssl + f = urllib2.urlopen(req, context=ssl.SSLContext(ssl.PROTOCOL_SSLv23)) + else: + f = urllib2.urlopen(req) f.read() f.close() print "Success." diff --git a/synapse/__init__.py b/synapse/__init__.py index fd87c7e2d0..56c10a84e9 100644 --- a/synapse/__init__.py +++ b/synapse/__init__.py @@ -16,4 +16,4 @@ """ This is a reference implementation of a Matrix home server. """ -__version__ = "0.8.1-r3" +__version__ = "0.8.1-r4" |