Skip to content

关于代理上telegram和aria2共存的问题 #10

Description

@strTATQwQ

在pikpakTgBot.py中添加以下两行可使用本机代理(前提是你真的在这个端口上配置了代理)
os.environ["http_proxy"] = "http://127.0.0.1:10809"
os.environ["https_proxy"] = "http://127.0.0.1:10809"

但是务必注意,如果你配置的是Aria2配置在本机,在config.py中填写ARIA2_HOST的值时,务必填写本机暴露在局域网上的ip地址(通常情况下是192.168.x.x),而不是localhost或者127.0.0.1,否则python一定找不到aria2。

这一部分内容还是希望作者完善一下,起码把代理配置暴露在config文件里面。

感谢作者付出的努力。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions