https://github.com/alexzhangs/shadowsocks-gfwlist-macos
Shadowsocks for OSX 2.6.3 has an issue of updating GFWList PAC error 404. The URL used during update is hardcoded in the application. This script get gfwlist.txt from new site and use gfwlist2pac to generate PAC.
https://github.com/alexzhangs/shadowsocks-gfwlist-macos
Last synced: about 2 months ago
JSON representation
Shadowsocks for OSX 2.6.3 has an issue of updating GFWList PAC error 404. The URL used during update is hardcoded in the application. This script get gfwlist.txt from new site and use gfwlist2pac to generate PAC.
- Host: GitHub
- URL: https://github.com/alexzhangs/shadowsocks-gfwlist-macos
- Owner: alexzhangs
- Created: 2016-07-07T05:22:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T16:04:39.000Z (almost 6 years ago)
- Last Synced: 2025-04-11T23:19:20.672Z (about 2 months ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# shadowsocks-gfwlist-macos
Shadowsocks for OSX 2.6.3 has an issue of updating GFWList PAC, that
returns error 404. The URL used during the update is hardcoded in the
application and can not be changed easily.This script get GFWList with a new URL and use gfwlist2pac to generate
PAC and put it into the configuration directory of Shadowsocks.This script is tested only with Max OS X.
## Dependence
### gfwlist2pac
```
pip install gfwlist2pac
```OR
```
pip install gfwlist2pac==1.1.3
```## Installation
```
git clone https://github.com/alexzhangs/shadowsocks-gfwlist-macossudo sh ./shadowsocks-gfwlist-macos/install.sh
```## Manually Update GFWList
```
ss-gfwlist-update.sh
```OR
```
/usr/local/bin/ss-gfwlist-update.sh
```## Setup cron job to automatically update GFWList
```
crontab -e
```Add entry (without virtualenv):
```
*/5 * * * * /usr/local/bin/ss-gfwlist-update.sh >> /tmp/ss-gfwlist-update-error.log 2>&1
```OR (with virtualenv, replace YOUR_VIRTUALENV with your virtualenv name)
```
*/5 * * * * { . ~/.bash_profile; pyenv activate YOUR_VIRTUALENV; /usr/local/bin/ss-gfwlist-update; } >> /tmp/ss-gfwlist-update-error.log 2>&1
```