diff --git a/src/resources/fc/impl/client.ts b/src/resources/fc/impl/client.ts index e2ab69d0..ad95870c 100644 --- a/src/resources/fc/impl/client.ts +++ b/src/resources/fc/impl/client.ts @@ -96,9 +96,14 @@ export default class FC_Client { this.customEndpoint = options.endpoint; const { timeout, userAgent } = options || {}; - const { host: endpoint = `${accountID}.${region}.fc.aliyuncs.com`, protocol = 'http' } = + let { host: endpoint = `${accountID}.${region}.fc.aliyuncs.com`, protocol = 'http' } = getCustomEndpoint(options.endpoint); + // 河源地域,fc 走内网 + if (region === 'cn-heyuan-acdr-1') { + endpoint = endpoint.replace('.fc.aliyuncs.com', '-internal.fc.aliyuncs.com') + } + logger.debug(`endpoint=${endpoint}; protocol=${protocol}`); const config = new Config({