Set strict perms on WireGuard IPv4 fallback config

This commit is contained in:
Alexandre
2025-11-19 20:26:53 +01:00
parent 271123e500
commit 065674de81

View File

@@ -44,6 +44,7 @@ else
ipv4_config="${WIREGUARD_STATE_DIR}/${wireguard_interface}-ipv4.conf"
echo -n > "${ipv4_config}"
chmod 600 "${ipv4_config}" 2>/dev/null || true
while IFS= read -r line; do
if [[ "${line}" =~ ^Endpoint ]]; then