(cnt,pobfs)
| 853 | |
| 854 | // 指定节点 obfs=xx-http 参数 |
| 855 | function OBFS_Handle(cnt,pobfs) { |
| 856 | if (pobfs == "shttp") { |
| 857 | pobfs="obfs="+"shadowsocks-http" |
| 858 | } else if (pobfs == "vhttp") { |
| 859 | pobfs="obfs="+"vmess-http" |
| 860 | } else { |
| 861 | pobfs="invalid" |
| 862 | } |
| 863 | if (/obfs\s*\=\s*http/.test(cnt) && pobfs!="invalid") { //只替换有 obfs=http 参数 |
| 864 | cnt = cnt.replace(/obfs\s*\=\s*http/,pobfs) |
| 865 | } |
| 866 | return cnt |
| 867 | } |
| 868 | |
| 869 | // 指定节点 tls-no-session-ticket/reuse 参数 |
| 870 | function Session_Handle(cnt,psession) { |