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

Function Session_Handle

Script/Parser.js:870–881  ·  view source on GitHub ↗
(cnt,psession)

Source from the content-addressed store, hash-verified

868
869// 指定节点 tls-no-session-ticket/reuse 参数
870function Session_Handle(cnt,psession) {
871 let st = ", tls-no-session-ticket=true"
872 let sr = ", tls-no-session-reuse=true"
873 if (psession == 0) {
874 cnt =cnt + st
875 } else if (psession == 1) {
876 cnt =cnt + sr
877 } else if (psession == 2){
878 cnt =cnt + st + sr
879 }
880 return cnt
881}
882
883// 指定 cert-sha256 pubkey-sha256 参数
884function SHA256_Handle(cnt,pcsha256,ppsha256) {

Callers 1

Subs2QXFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected