feat: 新增 SaFirewallCheckHookForHost host 检测 hook

This commit is contained in:
click33
2025-02-27 09:50:12 +08:00
parent 80789607fd
commit e469b76681
13 changed files with 158 additions and 14 deletions

View File

@@ -27,7 +27,10 @@ import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.*;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 对 SaRequest 包装类的实现Jakarta-Servlet 版)
@@ -171,6 +174,14 @@ public class SaRequestForServlet implements SaRequest {
return request.getMethod();
}
/**
* 查询请求 host
*/
@Override
public String getHost() {
return request.getServerName();
}
/**
* 转发请求
*/