1

从自建 VPN 换成机场后, api 调用超时。

 10 months ago
source link: https://www.v2ex.com/t/966770
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  问与答

从自建 VPN 换成机场后, api 调用超时。

  franklinre · 3 小时 8 分钟前 · 304 次点击
大家好!

我调用 Google Authentication SDK 的方法:public GoogleIdToken verify(String idTokenString)。
阅读源码后,发现是对 www.googleapis.com/142.251.42.234:443 进行 socket 连接。
现在的情况是:大陆 pc 开发环境通过机场连接不成功,报超时。新加坡生产环境连接正常。
以前的情况是:大陆 pc 开发环境通过自建 VPN (是 openVPN )连接正常。新加坡生产环境连接正常。

之前也遇到过一些类似的情况,比如:换成机场后,Mobgodb+srv 格式的数据库 URL ,在 DNS 找不到 TXT record 。

试过两个机场,都出现以上这种问题。

请教大家,是不是机场与自建 VPN 的原理有很大的不同?为什么会出现这种问题?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK