diff --git a/packages/core/src/base-client.ts b/packages/core/src/base-client.ts index 7c0f3a7f..527c8758 100644 --- a/packages/core/src/base-client.ts +++ b/packages/core/src/base-client.ts @@ -576,12 +576,14 @@ export class BaseTelegramClient extends EventEmitter { it.id === id && it.mediaOnly && it.cdn === cdn && - !it.tcpoOnly + !it.tcpoOnly && + !it.ipv6 ) } if (!found) found = this._config.dcOptions.find( - (it) => it.id === id && it.cdn === cdn && !it.tcpoOnly + (it) => + it.id === id && it.cdn === cdn && !it.tcpoOnly && !it.ipv6 ) if (found) return found