riddle_

代理校内PAC 测试

Dec 12th, 2022 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. function FindProxyForURL(url, host) {
  2. if (dnsDomainIs(host, "jwxt.cumt.edu.cn") ||
  3. dnsDomainIs(host, "jwxk1.cumt.edu.cn") ||
  4. dnsDomainIs(host, "jwxk2.cumt.edu.cn")) {
  5. if (isResolvable("n1.cumter.ml")) {
  6. return "PROXY n1.cumter.ml:7890; PROXY w1.cumter.ml:7999; PROXY w2.cumter.ml:7590; SOCKS cn-hn-dx-2.natfrp.cloud:26308; SOCKS cn-sy-dx-1.natfrp.cloud:60459; SOCKS n1.cumter.ml:7891; PROXY n1.cumter.ml:7893; DIRECT; ";
  7. } else {
  8. return "SOCKS cn-hn-dx-2.natfrp.cloud:26308; SOCKS cn-sy-dx-1.natfrp.cloud:60459; DIRECT; ";
  9. }
  10.  
  11. }
  12. if (isInNet(host, "10.103.4.10", "255.255.255.0")) {
  13. return "PROXY w1.cumter.ml:7999; DIRECT; ";
  14. }
  15. return "DIRECT";
  16. }
Advertisement
Add Comment
Please, Sign In to add comment