Update configuration

1. run as user nobody;
2. set name servers for internal DNS resolver is 8.8.8.8;
3. set mode is TCP and UDP in configuration file.

Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
Teddysun 2018-06-04 00:29:04 +09:00
parent a54e45dd19
commit 570dbb10f9
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -501,8 +501,11 @@ elif [ "${selected}" == "4" ]; then
"local_port":1080,
"password":"${shadowsockspwd}",
"timeout":300,
"user":"nobody",
"method":"${shadowsockscipher}",
"fast_open":${fast_open},
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp",
"plugin":"obfs-server",
"plugin_opts":"obfs=${shadowsocklibev_obfs}"
}
@ -515,8 +518,11 @@ EOF
"local_port":1080,
"password":"${shadowsockspwd}",
"timeout":300,
"user":"nobody",
"method":"${shadowsockscipher}",
"fast_open":${fast_open}
"fast_open":${fast_open},
"nameserver":"8.8.8.8",
"mode":"tcp_and_udp"
}
EOF
fi