-1

我正在尝试使用静态 IP将我的Heroku 应用程序连接到Atlas MongoDB

我已经安装了 QuotaGuard Shield 静态 IP。

运行heroku run bash然后运行时,curl http://icanhazip.com/我得到的 IP 与 QuotaGuard Shield 仪表板中提到的 IP 不同。

有谁知道我在QG Shield的配置中缺少什么?

4

1 回答 1

1

你需要使用curl -x $QUOTAGUARDSHIELD_URL http://icanhazip.com.

你必须告诉 curl 使用代理。

于 2021-08-04T23:25:19.467 回答