Skip to content
This repository has been archived by the owner on Dec 25, 2018. It is now read-only.

split a remote proxies.list for personal needs

Notifications You must be signed in to change notification settings

jostyee/surge_proxy_list_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

surge_proxy_list_gen

缘由

从Surge 3开始,策略组直接可以使用来自于另一个文件或者 URL 的代理声明1

Group-A = fallback, policy-path=proxies.list, url = http://www.bing.com/, timeout = 2
Group-B = select, policy-path=http://example.com/proxies.txt

代理服务提供了一个远程列表,不过我有需求按照地区区分开来(Netflix/YouTube Premium),所以自己写个小工具暴力拆分.

用法

go get -u -v github.com/jostyee/surge_proxy_list_gen
go run main.go -url='$remote_proxies_list' -regions='[SS] 香港,[SS] 日本,[SS] 美国,[SS] 俄罗斯' -path='$surge_icloud_drive_directory'

执行完成后会在指定目录下生成对应的文件('[SS] 香港.list'/'[SS] 日本.list'...)

Footnotes

  1. https://nssurge.zendesk.com/hc/zh-cn/articles/360010038714

About

split a remote proxies.list for personal needs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages