mirror of
https://github.com/CodeChina888/FakeToa.git
synced 2026-02-03 18:33:14 +08:00
Update toa.py
fix error cgroup
This commit is contained in:
4
toa.py
4
toa.py
@@ -28,7 +28,7 @@ class UserOption:
|
||||
|
||||
def get_current_cgroup():
|
||||
if os.path.exists('/sys/fs/cgroup/unified/'):
|
||||
return '/sys/fs/cgroup/unified'
|
||||
return '/sys/fs/cgroup/unified/'
|
||||
|
||||
with open('/proc/self/cgroup', 'r') as file:
|
||||
lines = file.readlines()
|
||||
@@ -134,4 +134,4 @@ Usage:
|
||||
attach_bpf(new_bpf_content,cgroup)
|
||||
|
||||
elif args.method == 'detach':
|
||||
detach_bpf(cgroup)
|
||||
detach_bpf(cgroup)
|
||||
|
||||
Reference in New Issue
Block a user