1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-vps.git synced 2025-03-09 15:50:00 +00:00

Custom 6.1 sysctl kernel configuration

This commit is contained in:
Ycarus (Yannick Chabanois) 2023-09-07 07:56:25 +00:00
parent a029915e39
commit afa31c4f03
2 changed files with 77 additions and 2 deletions

View file

@ -739,9 +739,17 @@ fi
# Get shadowsocks optimization
if [ "$LOCALFILES" = "no" ]; then
wget -O /etc/sysctl.d/90-shadowsocks.conf ${VPSURL}${VPSPATH}/shadowsocks.conf
if [ "$UPSTREAM6" = "yes" ]; then
wget -O /etc/sysctl.d/90-shadowsocks.conf ${VPSURL}${VPSPATH}/shadowsocks.6.1.conf
else
wget -O /etc/sysctl.d/90-shadowsocks.conf ${VPSURL}${VPSPATH}/shadowsocks.conf
fi
else
cp ${DIR}/shadowsocks.conf /etc/sysctl.d/90-shadowsocks.conf
if [ "$UPSTREAM6" = "yes" ]; then
cp ${DIR}/shadowsocks.6.1.conf /etc/sysctl.d/90-shadowsocks.conf
else
cp ${DIR}/shadowsocks.conf /etc/sysctl.d/90-shadowsocks.conf
fi
fi
if [ "$update" != 0 ]; then