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
73 changed files with 130 additions and 130 deletions

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;