You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
如题,复制粘贴后显示TypeError: not a function
// Define the
main
functionfunction main(context) {
// 获取现有配置
let config = context.getConfig();
// 定义新的 WireGuard 节点
let newProxy = {
name: "Warp",
type: "wireguard",
server: "2606:4700:d0::1d19:1bc0:f195:375a",
port: 4198,
ip: "172.16.0.2",
ipv6: "2606:4700:110:8d9e:d73a:eba8:7601:ad7f",
public_key: "bmXOC+F1FxEMF9dyiK2H5/1SUtzH0JuVo51h2wPfgyo=",
private_key: "2Kz98+a7wjm6D5isKP2w38C5hbwPdiyxdTvaVgfcOlI=",
mtu: 1280,
udp: true
};
const group = config["proxy-groups"].find((item) => item.name === "代理");
if (group) {
group.proxies.push("Warp");
}
return config;
}
Beta Was this translation helpful? Give feedback.
All reactions