MCPcopy Create free account
hub / github.com/Moli-X/Resources / OBFS_Handle

Function OBFS_Handle

Script/Parser.js:855–867  ·  view source on GitHub ↗
(cnt,pobfs)

Source from the content-addressed store, hash-verified

853
854// 指定节点 obfs=xx-http 参数
855function 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 参数
870function Session_Handle(cnt,psession) {

Callers 1

Subs2QXFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected