mirror of
https://github.com/XTLS/Xray-examples.git
synced 2025-09-18 05:04:28 +08:00
Change 127.0.0.1
to ::1
This commit is contained in:
@@ -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": {
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user