feat: debug options

This commit is contained in:
FUFSoB committed 2026-10-11 11:18:48 +05:00
1 parent cacd51595c
commit e293efd1c1
33 files changed
+965 -77

No files matched your search

+2 -2
View File
@@ -176,7 +176,7 @@ let
# (an app or a domain sent through a tunnel) it would otherwise take the default route,
# away from the connection it was meant to precede; without such routing it is a no-op.
optPrefix = lib.concatStringsSep " " (
lib.optional zapret2Cfg.debug "--debug=1"
lib.optional cfg.debug.zapret2.packets "--debug=1"
++ [
"--bind-fix4"
"--bind-fix6"
@@ -265,7 +265,7 @@ let
"AUTOHOSTLIST_INCOMING_MAXSEQ=${toString autoCfg.incomingMaxseq}"
"AUTOHOSTLIST_UDP_OUT=${toString autoCfg.udpOut}"
"AUTOHOSTLIST_UDP_IN=${toString autoCfg.udpIn}"
"AUTOHOSTLIST_DEBUGLOG=${if autoCfg.debugLog then "1" else "0"}"
"AUTOHOSTLIST_DEBUGLOG=${if cfg.debug.zapret2.autoHostlist then "1" else "0"}"
""
]
)