mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix
This commit is contained in:
parent
70e4c6ad90
commit
098d44fdcf
1 changed files with 2 additions and 2 deletions
|
@ -967,8 +967,8 @@ def shadowsocks(*, params: ShadowsocksConfigparams, current_user: User = Depends
|
|||
with open('/etc/shadowsocks-libev/manager.json', 'w') as outfile:
|
||||
json.dump(shadowsocks_config, outfile, indent=4)
|
||||
os.system("systemctl restart shadowsocks-libev-manager@manager.service")
|
||||
for x in range(1, os.cpu_count()):
|
||||
os.system("systemctl restart shadowsocks-libev-manager@manager" + str(x) + ".service")
|
||||
#for x in range(1, os.cpu_count()):
|
||||
# os.system("systemctl restart shadowsocks-libev-manager@manager" + str(x) + ".service")
|
||||
shorewall_add_port(current_user, str(port), 'tcp', 'shadowsocks')
|
||||
shorewall_add_port(current_user, str(port), 'udp', 'shadowsocks')
|
||||
set_lastchange()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue