Commits

mickael9 committed 1779698

Remove proxy support.
Remove /game prefixes for urls
Set launcher version to 13

  • Participants
  • Parent commits cc4bca6
  • Branches beta1.3

Comments (0)

Files changed (2)

 from web import form
 
 urls = (
-    '/game/getversion.jsp', 'getversion',
-    '/game/joinserver.jsp', 'joinserver',
-    '/game/checkserver.jsp', 'checkserver',
+    '/getversion.jsp', 'getversion',
+    '/joinserver.jsp', 'joinserver',
+    '/checkserver.jsp', 'checkserver',
     '/register', 'register',
 )
 
         try:
             user = db.where('users', username = i.user)[0]
         except IndexError:
-            op = urllib2.OpenerDirector()
-            op.add_handler(urllib2.HTTPHandler())
-
-            req = urllib2.Request("http://%s/game/checkserver.jsp?%s" %
-                    (config.PROXY_IP, urlencode({'user' : i.user, 'serverId': i .serverId})),
-                    headers={'Host' : "minecraft.net"})
-
-            resp = op.open(req)
-            web.ctx.status = "%d %s" % (resp.code, resp.msg)
-            return resp.read()
+            return "NO"
 
         if i.serverId != user.server_id:
             return "NO"
 SALT = ''
-CLIENT_VER = '1295618277000' # see http://www.tkte.ch/projects/pymy/
-LAUNCHER_VER = 12
-PROXY_IP = '194.28.157.42'   # minecraft.net
+CLIENT_VER = '1295618277000' # see ~/.minecraft/bin/version
+LAUNCHER_VER = 13
 ALLOWED_IPS = ('127.0.0.1',) # these server IPs are allowed to use this master