We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 164ee0e commit ed737a1Copy full SHA for ed737a1
1 file changed
src/core/web_server.cpp
@@ -4731,9 +4731,10 @@ void MiningInterface::auto_detect_external_info()
4731
boost::asio::connect(sock, endpoints);
4732
4733
std::string req =
4734
- "GET / HTTP/1.0\r\n"
+ "GET /ip HTTP/1.0\r\n"
4735
"Host: ifconfig.me\r\n"
4736
- "User-Agent: c2pool/0.1\r\n"
+ "User-Agent: curl/8.0\r\n"
4737
+ "Accept: text/plain\r\n"
4738
"Connection: close\r\n\r\n";
4739
boost::asio::write(sock, boost::asio::buffer(req));
4740
0 commit comments