fix: hardening and fixes

This commit is contained in:
fufsob committed 2026-09-15 08:56:33 +00:00
1 parent aa19042ee5
commit a82417a2bd
32 files changed
+619 -256

No files matched your search

+2
View File
@@ -23,6 +23,8 @@ pkgs.writeShellScript "proxy-suite-autoproxy" ''
[(.domains // {}) | to_entries[] | select(.value.exit == $t) | .key] as $d
| {version: 1, rules: (if ($d | length) > 0 then [{domain_suffix: $d}] else [] end)}
' "$2" > "$path.tmp"
# sing-box reads it as proxy-suite-daemon through the 0751 state dir.
chmod 644 "$path.tmp"
mv -f "$path.tmp" "$path"
done
''