Skip to content

Commit

Permalink
通过请求HTTP方式获得IP (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqizjl authored and windmemory committed Jul 10, 2019
1 parent 3353db9 commit e9f60cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager/cdn-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class CDNManager {
*/
public async getCDNServerIP () {
log.silly(PRE, `getCDNServerIP()`)
const ip = process.env.PADPRO_IP || await publicIp.v4()
const ip = process.env.PADPRO_IP || await publicIp.v4({ https: true })
const result: GrpcGetCdnDnsPayload = await this.wechatGateway.callApi('GrpcGetCdnDns', { ip })
this.cdnInfo = {
authKey: Buffer.from(result.dnsCdn.aesKey, 'base64'),
Expand Down

0 comments on commit e9f60cb

Please sign in to comment.