Closed sakarie9 closed 1 year ago
日志如下,主机并没有 IPV6,也没有配置 Docker 使用 IPV6
main_q2tg | [2023-01-15T10:29:55.223] [DEBUG] Instance - 0 - 正在登录 TG Bot main_q2tg | [2023-01-15T10:29:55.225] [INFO] - [Running gramJS version 2.15.0] main_q2tg | [2023-01-15T10:29:55.225] [DEBUG] TelegramSession - undefined - Session 不存在,创建 main_q2tg | [2023-01-15T10:29:55.243] [INFO] - [Connecting to 2001:067c:04e8:f004:0000:0000:0000:000a:80/TCPFull using PromisedNetSocket] main_q2tg | [2023-01-15T10:29:55.245] [WARN] - [Attempt 0 at connecting failed] main_q2tg | Error: connect EADDRNOTAVAIL 2001:067c:04e8:f004:0000:0000:0000:000a:80 - Local (:::0) main_q2tg | at internalConnect (node:net:1053:16) main_q2tg | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) main_q2tg | at node:net:1156:9 main_q2tg | at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { main_q2tg | errno: -99, main_q2tg | code: 'EADDRNOTAVAIL', main_q2tg | syscall: 'connect', main_q2tg | address: '2001:067c:04e8:f004:0000:0000:0000:000a', main_q2tg | port: 80 main_q2tg | } main_q2tg | [2023-01-15T10:29:56.249] [WARN] - [Attempt 1 at connecting failed] main_q2tg | Error: connect EADDRNOTAVAIL 2001:067c:04e8:f004:0000:0000:0000:000a:80 - Local (:::0) main_q2tg | at internalConnect (node:net:1053:16) main_q2tg | at defaultTriggerAsyncIdScope (node:internal/async_hooks:464:18) main_q2tg | at node:net:1156:9 main_q2tg | at process.processTicksAndRejections (node:internal/process/task_queues:77:11) { main_q2tg | errno: -99, main_q2tg | code: 'EADDRNOTAVAIL', main_q2tg | syscall: 'connect', main_q2tg | address: '2001:067c:04e8:f004:0000:0000:0000:000a', main_q2tg | port: 80 main_q2tg | } ...
大概是这里出了问题,改成 false 就可以了 https://github.com/Clansty/Q2TG/blob/3b1943961a10f4c716d7a25e5e712bd69a334ca6/src/client/Telegram.ts#L49
已修复
日志如下,主机并没有 IPV6,也没有配置 Docker 使用 IPV6