KaringX / karing

Simple & Powerful proxy utility, Support routing rules for clash/sing-box
https://karing.app
3.38k stars 294 forks source link

[Enhancement]: xhttp #441

Open Graveyard9988 opened 1 week ago

Graveyard9988 commented 1 week ago

Hi

First, Please watch this example of this xhttp config:

{ "log": { "loglevel": "warning" }, "routing": { "rules": [ { "ip": [ "geoip:private" ], "outboundTag": "direct" } ] }, "inbounds": [ { "listen": "127.0.0.1", "port": 10808, "protocol": "socks" }, { "listen": "127.0.0.1", "port": 10809, "protocol": "http" } ], "outbounds": [ { "protocol": "vless", "settings": { "vnext": [ { "address": "6.75.300.69", "port": 443, "users": [ { "id": "71756baf-2110-4292-9372-d696ace89f9c", "encryption": "none" } ] } ] }, "streamSettings": { "network": "xhttp", "xhttpSettings": { "mode": "auto", "path": "/yourpath", "downloadSettings": { "address": "www.speedtest.net", "port": 443, "network": "xhttp", "xhttpSettings": { "path": "/yourpath", "host": "split.gladiator.gb", "mode": "auto" }, "security": "tls", "tlsSettings": { "allowInsecure": false, "serverName": "www.gladiator.gb", "alpn": [ "h2" ], "fingerprint": "chrome" } } }, "security": "reality", "realitySettings": { "fingerprint": "chrome", "serverName": "www.speedtest.net", "publicKey": "Zplz0pWAz0UlXHpono8BX9PSoH2QzfV66jQ-XCEQTSE", "shortId": "c8fh" } } }, { "protocol": "freedom", "tag": "direct" } ] }

Xray core developers has recently added "xhttp" method which is enhanced version of "splithttp".

In the Above config, download is based on splithttp and upload is based on reality by xhttp method.

Unfortunately, singbox developer has no plan to add xhttp to singbox.

I wanna ask you to import xttp from latest xray core and design options for entering any types of xhttp configs to karing.

Thanks for always great job

Regards

Graveyard9988 commented 18 hours ago

@GooRingX example config updated