-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Cant Auth, seems like it's trying to make a IPv6 connection on IPv4 network/internet. #105
Comments
@MarjovanLier Thanks for creating this issue! Noted your problem, i'll try to find fix as fast as i can (sorry, don't have enough time to maintain this project, still trying to find additional maintainer) |
I am suffering a similar problem, in my case the error is the following:
This address comes from here Line 417 in 5eb6237
|
I've just discovered that wsl2 hasn't support for IPv6, that's why I am getting a network error: microsoft/WSL#4518 I'll try directly from windows host. |
Same:
Any update? |
Try the latest commit d0990b5 |
@waybackarchiver Already tried, but nothing changes. What i have noticed is that also if i use "ping6 2001:67c:4e8:f004::b" on my macbook i can't reach the data center. Any suggestion? |
It looks like can not connect the Telegram server over IPv6. I guess should add an option to skipping IPv6 address at Lines 119 to 125 in d0990b5
|
I've filtered all ipv6 addressess: Now is connecting to this ip: And now i have this error: Any suggestion? |
It is a known issue same as #65 |
So actually the lib isn't working at all for auth, right? |
I only got a successfully auth at the example code (examples/auth/main.go), maybe I missing something. |
Solved. Change the code in "NewClient", telegram.Common.go for _, dc := range config.DcOptions {
if dc.Cdn {
continue
}
if strings.Con; tains(dc.IpAddress, ":") {
// ipv6
continue
}
// Prevent replacing ip if one DC has more ips ( in this way i'm preserving the first ip that i have)
_, ok := dcList[int(dc.ID)]
if ok {
continue
}
dcList[int(dc.ID)] = dc.IpAddress + ":" + strconv.Itoa(int(dc.Port))
} |
And for the error: panic: (code 4294966892) I solved as yabibi suggested in issue #65 |
ref: #22 (comment) |
I have do the change : for _, dc := range config.DcOptions {
Then I got panic: (code 4294966892) How to resove it ? Could you help me, and show the detail? @Kliton |
This is soooooo sucks that i developed this project and i completely lost a context about all issues.... Fuck, i need to make pipelines for problem solving... @libai0610 sorry that current community can't help you on right level, i'll try to look what's the problem and maybe come back to you, sorry for super low support level. |
Thank you very much. I believe it will be better and better with everyone's efforts. @quenbyako |
I can't even succeed with an example |
Brother, I need your help too |
Did you finally deal with him? |
Using https://github.com/xelaj/mtproto/blob/main/examples/auth/main.go to try auth with my app ID and hash returns the floowing error.
marjo@Laptop:~/go/src/bitbucket.org/marjo/telegram/auth$ clear; go run main.go 27xxxxxxxxx
&errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &errors.withStack{
error: &errors.withMessage{
cause: &net.AddrError{
Err: "too many colons in address",
Addr: "2001:067c:04e8:f004:0000:0000:0000:000b",
},
msg: "resolving tcp",
},
stack: &errors.stack{
0x6a7085,
0x6a76c5,
0x6abbb5,
0x6ab9e7,
0x6ac119,
0x6ad585,
0x6abf85,
0x6c9ac5,
0x6c9a29,
0x6e2970,
0x43a136,
0x46caa1,
},
},
msg: "setup connection",
},
stack: &errors.stack{
0x6a788a,
0x6abbb5,
0x6ab9e7,
0x6ac119,
0x6ad585,
0x6abf85,
0x6c9ac5,
0x6c9a29,
0x6e2970,
0x43a136,
0x46caa1,
},
},
msg: "can't connect",
},
stack: &errors.stack{
0x6abc16,
0x6ab9e7,
0x6ac119,
0x6ad585,
0x6abf85,
0x6c9ac5,
0x6c9a29,
0x6e2970,
0x43a136,
0x46caa1,
},
},
msg: "recreating connection",
},
stack: &errors.stack{
0x6ac146,
0x6ad585,
0x6abf85,
0x6c9ac5,
0x6c9a29,
0x6e2970,
0x43a136,
0x46caa1,
},
},
msg: "sending AuthSendCode",
},
stack: &errors.stack{
0x6c9b36,
0x6e2970,
0x43a136,
0x46caa1,
},
}
panic: sending AuthSendCode: recreating connection: can't connect: setup connection: resolving tcp: address 2001:067c:04e8:f004:0000:0000:0000:000b: too many colons in address
goroutine 1 [running]:
main.main()
/home/marjo/go/src/bitbucket.org/marjo/telegram/auth/main.go:70 +0x128b
exit status 2
The text was updated successfully, but these errors were encountered: