Skip to content

responseFor

通过设置响应头 x-whistle-response-for 字段,自定义在 Whistle Network 面板上显示的 ServerIP

等价于:resHeaders://x-whistle-response-for=xxx

规则语法

txt
pattern responseFor://ip [filters...]
参数描述详细文档
pattern匹配请求 URL 的表达式匹配模式文档
ip自定义客户端 IP
⚠️ 不支持从文件/远程 URL 加载数据
filters可选过滤器,支持匹配:
• 请求URL/方法/头部/内容
• 响应状态码/头部
过滤器文档

配置示例

txt
www.example.com/path  responseFor://1.1.1.1,2.2.2.2

关联协议

  1. 自定义响应头:resHeaders://x-whistle-response-for=xxx