tor.py 文件源码

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

项目:CoinSwapCS 作者: AdamISZ 项目源码 文件源码
def start_tor(site, hs_public_port, hsdir):
    # set up HS server
    hs_endpoint = endpoints.serverFromString(reactor,
        "onion:"+str(hs_public_port)+":hiddenServiceDir="+hsdir)
    d = hs_endpoint.listen(site)
    #add chain of callbacks for actions after Tor is set up correctly.
    d.addCallback(listening)
    d.addErrback(setup_failed)
    return d
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号