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

Function XTFO

Script/Parser.js:2960–2968  ·  view source on GitHub ↗
(cnt,ptfo)

Source from the content-addressed store, hash-verified

2958}
2959
2960function XTFO(cnt,ptfo) {
2961 var tfo = ptfo == 1? "fast-open=true, " : "fast-open=false, "
2962 if(cnt.indexOf("fast-open") != -1){
2963 var cnt0 = cnt.replace(RegExp("fast\-open.*?\,", "gmi"), tfo)
2964 }else{
2965 var cnt0 = cnt.replace(RegExp("tag.*?\=", "gmi"), tfo+"tag=")
2966 }
2967 return cnt0
2968}
2969
2970
2971// udp-over-tcp=true 开启

Callers 3

Subs2QXFunction · 0.85
Surge2QXFunction · 0.85
Clash2QXFunction · 0.85

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected