dns bytedance-dns script-path=bytedance-dns.js,debug=true
let ssid = $network.wifi.ssid
console.log("ssid = ", ssid)
console.log("domain incoming =", $domain)
console.log("network", $network)
let inOffice = (ssid === "Bytedance Inc") || (ssid === "Bytedance 2.4G")
if(inOffice) {
console.log("ssid go system")
$done({});
} else {
$done({server: "10.8.8.18"});
}
这里面的全部打印不出来,显示
2020-04-11 10:12:14.147863 <NOTIFY> [SGJSVM] [bytedance-dns] ssid =
2020-04-11 10:12:14.147938 <NOTIFY> [SGJSVM] [bytedance-dns] domain incoming =
2020-04-11 10:12:14.147970 <NOTIFY> [SGJSVM] [bytedance-dns] network