mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-28 08:26:35 +08:00
服务支持自定义访客IP地址获取方式/对X-Real-IP等Header值进行有效性验证
This commit is contained in:
@@ -275,7 +275,7 @@ func (this *HTTPRequest) WAFRaw() *http.Request {
|
||||
|
||||
// WAFRemoteIP 客户端IP
|
||||
func (this *HTTPRequest) WAFRemoteIP() string {
|
||||
return this.requestRemoteAddr()
|
||||
return this.requestRemoteAddr(true)
|
||||
}
|
||||
|
||||
// WAFGetCacheBody 获取缓存中的Body
|
||||
|
||||
Reference in New Issue
Block a user