diff --git a/cgproxy.conf b/cgproxy.conf index ea68ae0..c224b52 100644 --- a/cgproxy.conf +++ b/cgproxy.conf @@ -6,7 +6,7 @@ ## note, cgroup must start with slash '/' ## the value can be string or bash array ## for array, only the first element will be created if not exist -## and the rest elements will not, so won't be applied +## and the rest elements will not, so won't be applied if not exist ### global proxy with v2ray service # cgroup_proxy="/" diff --git a/cgroup-tproxy.sh b/cgroup-tproxy.sh index eaf885e..f419b89 100644 --- a/cgroup-tproxy.sh +++ b/cgroup-tproxy.sh @@ -107,6 +107,7 @@ esac done ## TODO cgroup need to exists before using in iptables since 5.6.5, maybe it's bug +## only create the first one in arrary test -d $cgroup_mount_point$cgroup_proxy || mkdir $cgroup_mount_point$cgroup_proxy || exit -1; test -d $cgroup_mount_point$cgroup_noproxy || mkdir $cgroup_mount_point$cgroup_noproxy || exit -1; diff --git a/readme.md b/readme.md index 014d6c4..f282d37 100644 --- a/readme.md +++ b/readme.md @@ -84,7 +84,7 @@ mkdir build && cd build && cmake .. && make && sudo make install ## note, cgroup must start with slash '/' ## the value can be string or bash array ## for array, only the first element will be created if not exist -## and the rest elements will not, so won't be applied +## and the rest elements will not, so won't be applied if not exist ### global proxy with v2ray service # cgroup_proxy="/"