Skip to content

Let the SOCKS proxy to resolve hostname #97

Closed
@ivofrolov

Description

@ivofrolov

The problem is if the telegram api is blocked by provider then in some cases you can not connect to telegram because of redirection (rewriting dns by provider? i don't know).

The solution is to resolve hostname by socks proxy. aiohttp_socks SocksConnector has the special parameter rdns which allows to do this.

It would be great to have ability to specify this option as parameter in Bot constructor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions