server.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:shadowsocksR-b 作者: hao35954514 项目源码 文件源码
def main():
    shell.check_python()
    if False:
        db_transfer.DbTransfer.thread_db()
    else:
        if get_config().API_INTERFACE == 'mudbjson':
            thread = MainThread(db_transfer.MuJsonTransfer)
        elif get_config().API_INTERFACE == 'sspanelv2':
            thread = MainThread(db_transfer.DbTransfer)
        else:
            thread = MainThread(db_transfer.Dbv3Transfer)
        thread.start()
        try:
            while thread.is_alive():
                thread.join(10.0)
        except (KeyboardInterrupt, IOError, OSError) as e:
            import traceback
            traceback.print_exc()
            thread.stop()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号