mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2024-12-28 21:31:43 +00:00
增加对judger_token不存在的判断
This commit is contained in:
parent
1c4c5e5fff
commit
2447251ef9
@ -120,6 +120,10 @@ class RPCServer(SocketServer.ThreadingMixIn, SimpleXMLRPCServer):
|
||||
pass
|
||||
|
||||
|
||||
if not os.environ.get("judger_token"):
|
||||
print "judger_token not set"
|
||||
exit(-1)
|
||||
|
||||
server = RPCServer(('0.0.0.0', 8080), SimpleXMLRPCRequestHandler, allow_none=True)
|
||||
server.register_instance(JudgeServer())
|
||||
server.serve_forever()
|
||||
|
Loading…
Reference in New Issue
Block a user