This commit is contained in:
Valeriy Manzhos 2026-04-06 15:13:05 +03:00
parent 2e95baf56b
commit 5ab372609b
No known key found for this signature in database
GPG key ID: 6547CFC8E2EC3D90

View file

@ -575,7 +575,7 @@ set -e
useradd --no-create-home --uid 785 --system v2rayn-core useradd --no-create-home --uid 785 --system v2rayn-core
groupadd v2rayn # Users in this group are allowed to use TUN groupadd v2rayn # Users in this group are allowed to use TUN
id -u 1000 && gpasswd -a $(id -un 1000) v2rayn id -u 1000 && gpasswd -a $(id -un 1000) v2rayn
if [ ! -d /etc/iproute2/rt_tables]; then if [ ! -d /etc/iproute2/rt_tables ]; then
mkdir -p /etc/iproute2/ mkdir -p /etc/iproute2/
fi fi
grep '^6418 ' /etc/iproute2/rt_tables || echo '6418 v2rayn-tun' >> /etc/iproute2/rt_tables grep '^6418 ' /etc/iproute2/rt_tables || echo '6418 v2rayn-tun' >> /etc/iproute2/rt_tables