fix(inspect): avoid unavailable request address

This commit is contained in:
Aethersailor
2026-05-25 22:42:11 +08:00
parent cee3a162d6
commit 91969356ea

View File

@@ -10,7 +10,7 @@ namespace inspect_page {
std::string page(Request &request, Response &response) {
writeLog(0,
"收到 /inspect 诊断台访问请求method=" + request.method +
", remote=" + request.remote_addr + "",
", path=" + request.url + "",
LOG_LEVEL_INFO);
response.headers["X-Robots-Tag"] =
"noindex, nofollow, noarchive, nosnippet, noimageindex";