shadowsocks/server.py
breakwa11 612c1e2ab3 add obfs_param
catch TCP&UDP exceptions
verify_simple&verify_deflate support sub obfs
2015-10-20 16:25:06 +08:00

35 lines
627 B
Python

#!/usr/bin/python
import time
import sys
import threading
import os
os.chdir(os.path.split(os.path.realpath(__file__))[0])
import server_pool
import db_transfer
from shadowsocks import shell
#def test():
# thread.start_new_thread(DbTransfer.thread_db, ())
# Api.web_server()
class MainThread(threading.Thread):
def __init__(self):
threading.Thread.__init__(self)
def run(self):
db_transfer.DbTransfer.thread_db()
def main():
shell.check_python()
if True:
db_transfer.DbTransfer.thread_db()
else:
thread = MainThread()
thread.start()
while True:
time.sleep(99999)
if __name__ == '__main__':
main()