现在知道也不算晚 的资讯▎
修复
•
功能
•
• 脚本参数支持 JSON 和 URL 编码:
#${encodeURIComponent(JSON.stringify({arg1: "1"}))}▎
终于有了 可喜可贺 但是会导致一些别的问题
▎👏🏻 欢迎评论 & 转发
加入
📢 频道 | 👥 群组
- ❤️4
- 🥰1
现在知道也不算晚 的资讯#${encodeURIComponent(JSON.stringify({arg1: "1"}))}
中国->美国 [UDP][200M][11159][vmess][ws][免流骚] 1
async function operator(proxies = []) {
const _ = lodash
return proxies.map((p = {}) => {
if(_.get(p, 'ws-opts')) {
let path = _.get(p, 'ws-opts.path') || '/'
if (!path.includes('?')) {
_.set(p, 'ws-opts.path', path+ '?ed=2048')
}
_.set(p, 'ws-opts.max-early-data', 2048)
_.set(p, 'ws-opts.early-data-header-name', 'Sec-WebSocket-Protocol')
}
return p
})
}