Skip to content
This repository was archived by the owner on Dec 5, 2021. It is now read-only.
This repository was archived by the owner on Dec 5, 2021. It is now read-only.

I get Only IPv6 address from DC #857

@IvnSrv

Description

@IvnSrv

I have a problem with this, well, I can't receive IPv4 address, and my ISP doesn't support IPv6 addreses.
How can I do?

I dump the dcOptions.
image

I'm using .Net Core 2.2.300.

  • I download this project yesterday, so, I can't update anything.
  • When I try to connect to IPv6 address I get an error...

In Network.TcpTransport, I change this:
_tcpClient = new TcpClient(endpoint);
(Because I couldn't connect with any address, even default IPv4)
to this:

_tcpClient = new TcpClient(address, port);
if (!_tcpClient.Connected) _tcpClient.Connect(endpoint);

And connect OK with default IPv4 address, but when I ask for code (SendCodeRequestAsync), it change DataCenter and I only gave IPv6 addresses :(... (Yes, I changed this dcOptions.FirstOrDefault(d => d.Id == dcId && !d.Ipv6);)...

How can I only receive IPv4 addresses?

Thanks!

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