Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何使用 vps 的特定 ip 在我尝试使用的 php 中发送 curl 请求
curl_setopt($curlh, CURLOPT_INTERFACE, "xxx.xxx.xxx.xxx");
但它总是选择主 ip 我在 vps 上有两个 ip,例如主 ip1.23.45.6 和辅助 ip1.23.45.7
1.23.45.6
1.23.45.7
它总是选择主IP