https://manual.nssurge.com/ 文档在细节部分缺失过于严重
今天尝试写个 Script,结果 Script Section 部分 http request 直接就是错的,
最尴尬的是我用 GUI 生成一个配置,requires-body=true 这种配置生成出来的是 requires-body=1(我暂且认为大家都写过 c),还有更让我懵逼的是 pattern 部分这个正则... 为啥有的需要转义有的不需要转义?case 一下 baidu.com
怎么写?
^http://baidu.com
or
^http:\/\/baidu\.com
[Script]
script1 = type=http-response,pattern=^http://www.example.com/test script-path=test.js,max-size=16384,debug=true
scropt2 = type=cron,cronexp="* * * * *",script-path=fired.js
scropt3 = type=http-request,pattern=^http://httpbin.org script-path=http-request.js,max-size=16384,debug=true,requires-body=true
scropt4 = type=dns,script-path=dns.js,debug=true
作者是否应该补全一下细节部分的文档?