diff --git a/server/plugins/changelog.ts b/server/plugins/changelog.ts index 900c1d1fa5..cc049a6840 100644 --- a/server/plugins/changelog.ts +++ b/server/plugins/changelog.ts @@ -3,6 +3,7 @@ import colors from "chalk"; import log from "../log"; import pkg from "../../package.json"; import ClientManager from "../clientManager"; +import Config from "../config"; const TIME_TO_LIVE = 15 * 60 * 1000; // 15 minutes, in milliseconds @@ -51,6 +52,7 @@ async function fetch() { Accept: "application/vnd.github.v3.html", // Request rendered markdown "User-Agent": pkg.name + "; +" + pkg.repository.url, // Identify the client }, + localAddress: Config.values.bind, }); if (response.statusCode !== 200) { diff --git a/server/plugins/irc-events/link.ts b/server/plugins/irc-events/link.ts index 9755d5560d..63a86dc00f 100644 --- a/server/plugins/irc-events/link.ts +++ b/server/plugins/irc-events/link.ts @@ -437,6 +437,7 @@ function fetch(uri: string, headers: Record) { retry: 0, timeout: prefetchTimeout || 5000, // milliseconds headers: getRequestHeaders(headers), + localAddress: Config.values.bind, }); gotStream