mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix client2client disable
This commit is contained in:
parent
51d12602df
commit
ef1d63ba4d
1 changed files with 2 additions and 1 deletions
|
@ -1519,6 +1519,7 @@ def client2client(*, params: ClienttoClient, current_user: User = Depends(get_cu
|
|||
for line in f:
|
||||
if not 'client-to-client' in line:
|
||||
n.write(line)
|
||||
if params.enable == True:
|
||||
n.write('client-to-client' + "\n")
|
||||
os.close(fd)
|
||||
move(tmpfile, '/etc/openvpn/tun0.conf')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue