mirror of
https://github.com/sussy-code/providers.git
synced 2026-04-19 23:52:05 +00:00
Fix
This commit is contained in:
parent
d8bbe3bb5e
commit
053ca3fe5a
2 changed files with 2 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ export function makeProviders(ops: ProviderMakerOptions) {
|
|||
const features = getTargetFeatures(
|
||||
ops.proxyStreams ? 'any' : ops.target,
|
||||
ops.consistentIpForRequests ?? false,
|
||||
ops.proxyStreams ?? false,
|
||||
ops.proxyStreams,
|
||||
);
|
||||
const list = getProviders(features, {
|
||||
embeds: getBuiltinEmbeds(),
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ export const targetToFeatures: Record<Targets, FeatureMap> = {
|
|||
export function getTargetFeatures(
|
||||
target: Targets,
|
||||
consistentIpForRequests: boolean,
|
||||
proxyStreams: boolean,
|
||||
proxyStreams?: boolean,
|
||||
): FeatureMap {
|
||||
const features = targetToFeatures[target];
|
||||
if (!consistentIpForRequests) features.disallowed.push(flags.IP_LOCKED);
|
||||
|
|
|
|||
Loading…
Reference in a new issue