summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-15 23:14:40 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-15 23:14:40 -0300
commit2d881070bcccaaabbef8ca34d7c31067ccd68d19 (patch)
tree7975f34be948569274f23070106ef2b7945dbe1f /game
parent9e12b2bcae77bdf829c723edd3eb576337260e2e (diff)
downloadclient-2d881070bcccaaabbef8ca34d7c31067ccd68d19.tar.gz
client-2d881070bcccaaabbef8ca34d7c31067ccd68d19.tar.bz2
client-2d881070bcccaaabbef8ca34d7c31067ccd68d19.tar.xz
client-2d881070bcccaaabbef8ca34d7c31067ccd68d19.zip
Disable default SSL support, it is still available if someone wants it.
Diffstat (limited to 'game')
-rw-r--r--game/defs.rpy23
1 files changed, 3 insertions, 20 deletions
diff --git a/game/defs.rpy b/game/defs.rpy
index 30402ec..f1c3700 100644
--- a/game/defs.rpy
+++ b/game/defs.rpy
@@ -43,8 +43,9 @@ init -3 python:
persistent.host="spheres.tmw2.org"
# FIXME: Set good defaults (=bad) for Android
if renpy.android:
- persistent.nothreading=True
+ persistent.nothreading=False
persistent.fatality=True
+ persistent.ssl_enabled=False
if (persistent.allfiles is None):
persistent.allfiles=[]
allfiles=[]
@@ -258,25 +259,7 @@ init -3 python:
# TODO: Should we set a "ver"?
if (int(persistent.version) < ver):
- # Check if the server have SSL support
- """
- try:
- stdout("Downloading certificate from server")
- x=requests.get("http://"+HOST+'/certificate.pem')
- #print len(x.text)
- if "BEGIN CERTIFICATE" in x.text:
- persistent.ssl_enabled=True
- stdout("Updating server certificate")
- f=open(get_path("cert/certificate.pem"), "w")
- f.write(x.text)
- f.close()
- stdout("SSL: ENABLED")
- else:
- raise Exception("Not a certificate")
- except:
- stdout("SSL: DISABLED")
- persistent.ssl_enabled=False
- """
+ # TODO: Check if the server have SSL support
# Download quests.json
f=open(get_path("quests.json"), "w")