Simplify SplitHTTP further, and add Caddyfile (#188)

* Simplify SplitHTTP further, and add Caddyfile

* raise log level

* enable udp

---------

Co-authored-by: 风扇滑翔翼 <Fangliding.fshxy@outlook.com>
This commit is contained in:
mmmray 2024-06-21 22:36:22 +02:00 committed by GitHub
parent f605cda6a0
commit 9d40021c5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 11 additions and 35 deletions

View file

@ -0,0 +1,5 @@
localhost:443 {
handle /split/* {
reverse_proxy http://127.0.0.1:1234
}
}

View file

@ -2,26 +2,14 @@
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"routing": {
"rules": [
{
"ip": [
"geoip:private"
],
"outboundTag": "direct"
}
]
},
"inbounds": [ "inbounds": [
{ {
"listen": "127.0.0.1", "listen": "127.0.0.1",
"port": 10808, "port": 10808,
"protocol": "socks" "protocol": "socks",
}, "settings": {
{ "udp": true
"listen": "127.0.0.1", }
"port": 10809,
"protocol": "http"
} }
], ],
"outbounds": [ "outbounds": [
@ -52,11 +40,7 @@
} }
}, },
"tag": "proxy" "tag": "proxy"
},
{
"protocol": "freedom",
"tag": "direct"
} }
] ]
} }

View file

@ -2,15 +2,6 @@
"log": { "log": {
"loglevel": "warning" "loglevel": "warning"
}, },
"routing": {
"rules": [
{
"port": "443",
"network": "udp",
"outboundTag": "block"
}
]
},
"inbounds": [ "inbounds": [
{ {
"listen": "127.0.0.1", "listen": "127.0.0.1",
@ -44,11 +35,7 @@
{ {
"protocol": "freedom", "protocol": "freedom",
"tag": "direct" "tag": "direct"
},
{
"protocol": "blackhole",
"tag": "block"
} }
] ]
} }