mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-23 15:40:44 +08:00
Fix Telegram notify proxyAgent URI
This commit is contained in:
parent
33fa3aca99
commit
b9c4790bda
|
|
@ -259,7 +259,7 @@ export default class NotificationService {
|
|||
let agent;
|
||||
if (telegramBotProxyHost && telegramBotProxyPort) {
|
||||
agent = new ProxyAgent({
|
||||
uri: `http://${authStr}${telegramBotProxyHost}:${telegramBotProxyPort}`,
|
||||
uri: `http://${authStr}@${telegramBotProxyHost}:${telegramBotProxyPort}`,
|
||||
});
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -484,7 +484,7 @@ function tgBotNotify(text, desp) {
|
|||
if (TG_PROXY_HOST && TG_PROXY_PORT) {
|
||||
let agent;
|
||||
agent = new ProxyAgent({
|
||||
uri: `http://${TG_PROXY_AUTH}${TG_PROXY_HOST}:${TG_PROXY_PORT}`,
|
||||
uri: `http://${TG_PROXY_AUTH}@${TG_PROXY_HOST}:${TG_PROXY_PORT}`,
|
||||
});
|
||||
options.dispatcher = agent;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user