OpenTl / OpenTl.ClientApi

The Api client library that implements the MtProto 2.0. To connect to servers, such as Telegram
MIT License
80 stars 24 forks source link

How to disable connect with ipv6 #14

Closed hzexe closed 6 years ago

hzexe commented 6 years ago

1.The ServerAddress in FactorySettings is set 149.154.175.50. 2.Delete session file 3.Run app An error with the log at a PC without ipv6

Unhandled Exception: System.TypeInitializationException: The type initializer for 'CheckPhone.AuthController' threw an exception. ---> System.AggregateException: One or more errors occurred. (One or more errors occurred. (connection timed out: [2001:b28:f23f:f005::a]:443)) ---> System.AggregateException: One or more errors occurred. (connection timed out: [2001:b28:f23f:f005::a]:443) ---> DotNetty.Transport.Channels.ConnectTimeoutException: connection timed out: [2001:b28:f23f:f005::a]:443

After the error,the ipv6 ip is in the new session file.But I've never set this IP address.

vik-borisov commented 6 years ago

@hzexe fixed on the dev feed. https://github.com/OpenTl/OpenTl.ClientApi/wiki/F.A.Q#how-to-disable-connect-with-ipv6