1
0
forked from shaytan/rdgen
This commit is contained in:
Bryan Gerlach
2025-04-14 11:05:13 -05:00
parent 0e975e73db
commit 2ca25d3a39

View File

@@ -121,7 +121,7 @@ def generator_view(request):
decodedCustom['default-settings']['theme'] = theme
elif themeDorO == "override":
decodedCustom['override-settings']['theme'] = theme
decodedCustom['approve-mode'] = passApproveMode
#decodedCustom['approve-mode'] = passApproveMode
decodedCustom['enable-lan-discovery'] = 'N' if denyLan else 'Y'
#decodedCustom['direct-server'] = 'Y' if enableDirectIP else 'N'
decodedCustom['allow-auto-disconnect'] = 'Y' if autoClose else 'N'
@@ -140,6 +140,7 @@ def generator_view(request):
decodedCustom['default-settings']['direct-server'] = 'Y' if enableDirectIP else 'N'
decodedCustom['default-settings']['hide-cm'] = 'Y' if hidecm else 'N'
decodedCustom['default-settings']['verification-method'] = 'use-permanent-password' if hidecm else 'use-both-passwords'
decodedCustom['default-settings']['approve-mode'] = passApproveMode
else:
decodedCustom['override-settings']['access-mode'] = permissionsType
decodedCustom['override-settings']['enable-keyboard'] = 'Y' if enableKeyboard else 'N'