Change 127.0.0.1 to ::1

This commit is contained in:
nekolsd 2025-06-04 09:30:44 +08:00
parent 68bc308422
commit 2fb8a67787
No known key found for this signature in database
73 changed files with 130 additions and 130 deletions

View File

@ -32,7 +32,7 @@ The Vless-TCP-XTLS is the HTTPS entrypoint. For every incoming request after doi
* If **ALPN=HTTP2** and at the same time the **SNI=trh2o.example.com** then the request is passed to **@trojan-h2**.
* In case of **ALPN=HTTP2**, it's first passed to **@trojan-tcp**. In trojan-tcp, if if it's not a valid request(for example the trojan password is wrong), another fallback is set, to once more pass the request to Nginx HTTP2 Unix Domain Socket and a decory website is served. When the request is using HTTP2, it could also be gRPC, so that is also checked in Nginx. This is how a VMESS-gRPC request is processed:
VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallback to xray trojan-tcp ------> fallback to nginx /dev/shm/h2c.sock ---**path=/vmgrpc**---> grpc_pass to xray vmess-gRPC listener on 127.0.0.1:3003
VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallback to xray trojan-tcp ------> fallback to nginx /dev/shm/h2c.sock ---**path=/vmgrpc**---> grpc_pass to xray vmess-gRPC listener on [::1]:3003
## What to change before use?
* Xray server.json
@ -61,7 +61,7 @@ VMESS-gRPC Request ------> Xray Vless-TCP-XTLS(443) ----**alpn=h2**----> fallbac
## Notes:
* Tested with **Xray 1.7.2** (Xray, Penetrates Everything.) Custom (go1.19.4 linux/amd64)
* For a little better performance, a DNS Cache could be setup (on 127.0.0.53 in this case) and used for resolving DNS queries. To enable xray to use it uncomment the corresponding rule from the `routing.settings.rules` in server.json.
* For a little better performance, a DNS Cache could be setup (on ::1 in this case) and used for resolving DNS queries. To enable xray to use it uncomment the corresponding rule from the `routing.settings.rules` in server.json.
* Multiple domains could be used at the same time, including domains behind cloudflare CDN. (For cloudflare, make sure websocket and gRPC are enabled in Network section). In this configuration these domains are **example.com** and **behindcdn.com**
* HTTP2 inbounds (Trojan-H2, Vless-H2, VMESS-H2 and ShadowSocks-H2)
* [HTTP2 Transport does not support fallback based on `path`](https://xtls.github.io/config/transports/h2.html#http-2). That's why SNI is used instead.

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {

View File

@ -49,7 +49,7 @@ server {
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:3001;
grpc_pass grpc://[::1]:3001;
}
@ -61,7 +61,7 @@ server {
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:3002;
grpc_pass grpc://[::1]:3002;
}
@ -73,7 +73,7 @@ server {
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:3003;
grpc_pass grpc://[::1]:3003;
}
@ -85,6 +85,6 @@ server {
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:3004;
grpc_pass grpc://[::1]:3004;
}
}

View File

@ -27,11 +27,11 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1"
"address": "::1"
},
"tag": "api",
"sniffing": null
@ -257,7 +257,7 @@
},
{
"tag": "shadowsocks-ws",
"listen": "127.0.0.1",
"listen": "::1",
"port": 4001,
"protocol": "shadowsocks",
"settings": {
@ -394,7 +394,7 @@
},
{
"tag": "shadowsocks-tcp",
"listen": "127.0.0.1",
"listen": "::1",
"port": 4002,
"protocol": "shadowsocks",
"settings": {
@ -430,7 +430,7 @@
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
{
"tag": "trojan-grpc",
"listen": "127.0.0.1", // listen on localhost
"listen": "::1", // listen on localhost
"port": 3001,
"protocol": "trojan",
"settings": {
@ -452,7 +452,7 @@
},
{
"tag": "vless-grpc",
"listen": "127.0.0.1", // listen on localhost
"listen": "::1", // listen on localhost
"port": 3002,
"protocol": "vless",
"settings": {
@ -475,7 +475,7 @@
},
{
"tag": "vmess-grpc",
"listen": "127.0.0.1", // listen on localhost
"listen": "::1", // listen on localhost
"port": 3003,
"protocol": "vmess",
"settings": {
@ -496,7 +496,7 @@
}
},
{
"listen": "127.0.0.1", //Only listen on localhost
"listen": "::1", //Only listen on localhost
"port": 3004,
"protocol": "shadowsocks",
"settings": {
@ -599,7 +599,7 @@
},
{
"tag": "shadowsocks-h2",
"listen": "127.0.0.1",
"listen": "::1",
"port": 4003,
"protocol": "shadowsocks",
"settings": {
@ -692,7 +692,7 @@
"tag": "DNS-Internal",
"protocol": "dns",
"settings": {
"address": "127.0.0.53",
"address": "::1",
"port": 53
}
}

View File

@ -6,7 +6,7 @@
//
{
"port": 4431,
"listen": "127.0.0.1",
"listen": "::1",
"tag": "tls-decrypt",
"protocol": "dokodemo-door",
"settings": {
@ -40,7 +40,7 @@
//
{
"port": 10801,
"listen": "127.0.0.1",
"listen": "::1",
"tag": "socks-in",
"protocol": "socks",
"sniffing": {
@ -59,7 +59,7 @@
"tag": "redirect-out",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:4431"
"redirect": "[::1]:4431"
}
},
// HTTPS

View File

@ -14,17 +14,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2081",
"protocol": "http"
}

View File

@ -14,17 +14,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2081",
"protocol": "http"
}

View File

@ -14,17 +14,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2081",
"protocol": "http"
}

View File

@ -33,7 +33,7 @@ http {
#gzip on;
server {
listen 127.0.0.1:80;
listen [::1]:80;
server_name yourserver_80.com;
charset utf-8;

View File

@ -60,7 +60,7 @@
{
"tag": "externalws",
"port": 65511,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [
@ -84,7 +84,7 @@
{
"tag": "interconn",
"port": 65510,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [

View File

@ -14,17 +14,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "2081",
"protocol": "http"
}

View File

@ -109,14 +109,14 @@
"tag": "redirect-out-h11",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:4431"
"redirect": "[::1]:4431"
}
},
{
"tag": "redirect-out-h211",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:4432"
"redirect": "[::1]:4432"
}
},
{

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -28,7 +28,7 @@
}
],
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
},
"streamSettings": {
"network": "tcp",

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -44,7 +44,7 @@ http {
root /usr/share/nginx/html;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1;
include /etc/nginx/default.d/*.conf;

View File

@ -6,7 +6,7 @@ xx.com {
file_server
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
reverse_proxy /path 127.0.0.1:2001 {
reverse_proxy /path [::1]:2001 {
transport http {
versions h2c
}

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 2001,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [

View File

@ -6,7 +6,7 @@ xx.com {
file_server
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
reverse_proxy /path 127.0.0.1:2001 {
reverse_proxy /path [::1]:2001 {
transport http {
tls
tls_client_auth CA.crt priv.key # 换成你的证书和私钥,绝对路径

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 2001,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [

View File

@ -6,6 +6,6 @@ xx.com {
file_server
tls CA.crt priv.key # 换成你的证书和私钥,绝对路径
reverse_proxy /path h2c://127.0.0.1:2001 {
reverse_proxy /path h2c://[::1]:2001 {
}
}

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 2001,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [

View File

@ -5,7 +5,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 10808,
"protocol": "socks",
"settings": {
@ -28,7 +28,7 @@
"settings": {
"vnext": [
{
"address": "127.0.0.1",
"address": "::1",
"port": 443,
"users": [
{

View File

@ -8,7 +8,7 @@
"port": 443,
"protocol": "dokodemo-door",
"settings": {
"address": "127.0.0.1",
"address": "::1",
"port": 4431, // reality reality
"network": "tcp"
},
@ -21,7 +21,7 @@
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 4431, //
"protocol": "vless",
"settings": {

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -49,7 +49,7 @@ http {
server_name _;
root /usr/share/nginx/html;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 10800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -44,7 +44,7 @@
},
{
"port": 1234,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "vless",
"settings": {
"clients": [

View File

@ -4,17 +4,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -36,11 +36,11 @@ http {
#gzip on;
server {
listen 127.0.0.1:8001 proxy_protocol;
listen 127.0.0.1:8002 http2 proxy_protocol;
listen [::1]:8001 proxy_protocol;
listen [::1]:8002 http2 proxy_protocol;
server_name yourserver.com;
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1;
charset utf-8;

View File

@ -4,17 +4,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -33,8 +33,8 @@ http {
#gzip on;
server {
listen 127.0.0.1:8001;
listen 127.0.0.1:8002 http2;
listen [::1]:8001;
listen [::1]:8002 http2;
server_name yourserver.com;
charset utf-8;

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 10808,
"protocol": "socks",
"settings": {

View File

@ -25,7 +25,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1", // Fill in 0.0.0.0 to allow connections from LAN
"listen": "::1", // Fill in 0.0.0.0 to allow connections from LAN
"port": 10808, // local socks listening port
"protocol": "socks",
"settings": {
@ -40,7 +40,7 @@
}
},
{
"listen": "127.0.0.1", // Fill in "0.0.0.0" to allow connections from LAN
"listen": "::1", // Fill in "0.0.0.0" to allow connections from LAN
"port": 10809, // Local http listening port
"protocol": "http",
"sniffing": {

View File

@ -34,9 +34,9 @@ http {
}
server {
listen 127.0.0.1:8001 proxy_protocol;
listen 127.0.0.1:8002 http2 proxy_protocol;
set_real_ip_from 127.0.0.1;
listen [::1]:8001 proxy_protocol;
listen [::1]:8002 http2 proxy_protocol;
set_real_ip_from ::1;
location / {
sub_filter $proxy_host $host;

View File

@ -4,17 +4,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -33,7 +33,7 @@ http {
#gzip on;
server {
listen 127.0.0.1:8001;
listen [::1]:8001;
server_name yourserver_8001.com;
charset utf-8;

View File

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

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 10808,
"protocol": "socks",
"settings": {

View File

@ -16,7 +16,7 @@ server {
# access_log off;
location /split {
proxy_pass http://127.0.0.1:1234;
proxy_pass http://[::1]:1234;
proxy_http_version 1.1;
proxy_redirect off;
}

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 1234,
"protocol": "vless",
"settings": {

View File

@ -10,7 +10,7 @@
]
},
"port": 10808,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -16,7 +16,7 @@ server {
if ($http_upgrade != "websocket") {
return 404;
}
proxy_pass http://127.0.0.1:1234;
proxy_pass http://[::1]:1234;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;

View File

@ -4,7 +4,7 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": 1234 ,
"protocol": "vless",
"settings": {

View File

@ -8,7 +8,7 @@
{
"tag": "socks",
"port": 800,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"sniffing": {
"enabled": true,
@ -24,7 +24,7 @@
{
"tag": "http",
"port": 801,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "http",
"sniffing": {
"enabled": true,
@ -113,7 +113,7 @@
"id": "5708766234462982042",
"type": "field",
"outboundTag": "direct",
"ip": ["127.0.0.1", "192.168.1.1"],
"ip": ["::1", "192.168.1.1"],
"enabled": true
},
{

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -16,17 +16,17 @@
},
"inbounds": [
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1080",
"protocol": "socks",
"settings": {
"auth": "noauth",
"udp": true,
"ip": "127.0.0.1"
"ip": "::1"
}
},
{
"listen": "127.0.0.1",
"listen": "::1",
"port": "1081",
"protocol": "http"
}

View File

@ -5,7 +5,7 @@
"inbounds": [
{
"port": 1080,
"listen": "127.0.0.1",
"listen": "::1",
"protocol": "socks",
"settings": {
"udp": true