haxpor / Potatso

Potatso is an iOS client that implements Shadowsocks proxy with the leverage of NetworkExtension framework. ***This project is unmaintained, try taking a look at this fork https://github.com/shadowcoel/shadowcoel instead.
GNU General Public License v3.0
2.04k stars 1.38k forks source link

Clone defunct Rule Set API #62

Open haxpor opened 6 years ago

haxpor commented 6 years ago

Rule set API as used since very beginning of this project has long gone and defunct, and we didn't have time to fix it yet.

You will see in Potatso/Core/API.swift file that we include a fake novel IP address there. It's not existing, so there are no rule set to pull from the cloud.

So initially what we could do is to study the JSON format as the current code try to parse, then create an API for that. I might host this stuff on my own server first.

PS. Then as an idea, later we might could have some kind of crowdsourcing simple site to allow users to submit useful rule sets so the app could fetch from it. Thus benefit all.

haxpor commented 6 years ago

I conducted study long time ago, you can refer to this for JSON format and structure.