fix: Docker IPv6

This commit is contained in:
Clansty 2023-01-16 15:30:35 +08:00
parent 004095fbcf
commit e383f67173
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ in
FFMPEG_PATH = "${cfg.ffmpeg-package}/bin/ffmpeg";
FFPROBE_PATH = "${cfg.ffmpeg-package}/bin/ffprobe";
FONTCONFIG_PATH = cfg.quotly-fonts;
IPV6 = "1";
};
serviceConfig = {
User = "q2tg";

View File

@ -46,7 +46,7 @@ export default class Telegram {
langCode: 'zh',
deviceModel: `${appName} On ${os.hostname()}`,
appVersion: 'rainbowcat',
useIPV6: true,
useIPV6: !!process.env.IPV6,
proxy: process.env.PROXY_IP ? {
socksType: 5,
ip: process.env.PROXY_IP,