feat: IN-TYPE rule support

eg. IN-TYPE,SOCKS/REDIR/INNER,Proxy
support list: HTTP HTTPS SOCKS SOCKS4 SOCKS5 REDIR TPROXY TUN INNER
This commit is contained in:
adlyq
2022-05-20 23:17:16 +08:00
parent 0f43a19fdb
commit 3ab82849d4
8 changed files with 114 additions and 7 deletions

View File

@ -20,7 +20,7 @@ type Rule struct {
Type string `json:"type"`
Payload string `json:"payload"`
Proxy string `json:"proxy"`
Size int `json:"Size"`
Size int `json:"size"`
}
func getRules(w http.ResponseWriter, r *http.Request) {