-
Notifications
You must be signed in to change notification settings - Fork 0
URI Parsers
v2rayroot edited this page Jun 14, 2026
·
1 revision
All parser functions return allocated UTF-8 JSON. On failure they return an
allocated empty string. Release both successful and empty results with
FreeCString.
char *Parse(char *optionsJSON);Recommended entry point. It detects:
vless://vmess://trojan://ss://
char *ParseVless(char *optionsJSON);
char *ParseTrojan(char *optionsJSON);
char *ParseVmess(char *optionsJSON);
char *ParseShadowsocks(char *optionsJSON);Use these when the protocol is already known.
{
"uri": "vless://..."
}Default local inbounds:
- HTTP:
10809 - SOCKS:
10808
Generated configuration normally contains:
- HTTP and SOCKS inbounds
- Main outbound tagged
Proxy - Freedom outbound tagged
Direct - Blackhole outbound tagged
Reject - Optional DNS and routing rules
See Parser Options and Transport Support.