mirror of
https://github.com/Ysurac/openmptcprouter-vps-admin.git
synced 2025-03-09 15:40:05 +00:00
Fix c2c
This commit is contained in:
parent
ef1d63ba4d
commit
76adbc98ce
1 changed files with 1 additions and 1 deletions
|
@ -1532,7 +1532,7 @@ def client2client(*, params: ClienttoClient, current_user: User = Depends(get_cu
|
|||
for line in f:
|
||||
if not line == 'vpn vpn DROP\n' and not line == '# THE FOLLOWING POLICY MUST BE LAST\n' and not line == 'all all REJECT info\n':
|
||||
n.write(line)
|
||||
if params.enable == True:
|
||||
if params.enable == False:
|
||||
n.write('vpn vpn DROP\n')
|
||||
n.write('# THE FOLLOWING POLICY MUST BE LAST\n')
|
||||
n.write('all all REJECT info\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue