ipac icon indicating copy to clipboard operation
ipac copied to clipboard

【请教】请问PAC中如何写才能判断要访问的域名或IP是否属于大陆?

Open chenxiccc opened this issue 9 years ago • 0 comments

【请教】 你好,鉴于现在被封的网站太多,有些网站即使未被封也速度很慢,所以希望能够在PAC中自动判断访问的域名或者IP是否属于大陆,如果不是,则走代理。

SpechtLite项目中,可以通过配置文件来判断访问地址所属国家是否是大陆 ` # Reject requests based on the IP address of the host. file: ~/.SpechtLite/rejectiprange adapter: reject

  • type: country # When the location is unknown. Usually this means this is resolved an Intranet IP. country: CN match: true adapter: direct
  • type: country # When the location is unknown. Usually this means this is resolved an Intranet IP. country: -- match: true adapter: direct` 不知在PAC文件中是否能够实现同样的功能?

chenxiccc avatar Dec 01 '16 14:12 chenxiccc