mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix(telegram): add dnsResultOrder=ipv4first default on Node 22+ to fix fetch failures (#5405)
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 71366e9532
Co-authored-by: Glucksberg <80581902+Glucksberg@users.noreply.github.com>
Co-authored-by: obviyus <22031114+obviyus@users.noreply.github.com>
Reviewed-by: @obviyus
This commit is contained in:
@@ -25,6 +25,12 @@ export type TelegramActionConfig = {
|
||||
export type TelegramNetworkConfig = {
|
||||
/** Override Node's autoSelectFamily behavior (true = enable, false = disable). */
|
||||
autoSelectFamily?: boolean;
|
||||
/**
|
||||
* DNS result order for network requests ("ipv4first" | "verbatim").
|
||||
* Set to "ipv4first" to prioritize IPv4 addresses and work around IPv6 issues.
|
||||
* Default: "ipv4first" on Node 22+ to avoid common fetch failures.
|
||||
*/
|
||||
dnsResultOrder?: "ipv4first" | "verbatim";
|
||||
};
|
||||
|
||||
export type TelegramInlineButtonsScope = "off" | "dm" | "group" | "all" | "allowlist";
|
||||
|
||||
@@ -160,6 +160,7 @@ export const TelegramAccountSchemaBase = z
|
||||
network: z
|
||||
.object({
|
||||
autoSelectFamily: z.boolean().optional(),
|
||||
dnsResultOrder: z.enum(["ipv4first", "verbatim"]).optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user