nixos/mpd: don't raise openFirewall warning for bind_to_address sockets

This commit is contained in:
Doron Behar
2025-12-16 10:19:34 +02:00
parent 3248e17346
commit a045ccb799
+7 -4
View File
@@ -371,10 +371,13 @@ in
warnings =
lib.optional
(
!(builtins.elem cfg.settings.bind_to_address [
"localhost"
"127.0.0.1"
])
!(
(builtins.elem cfg.settings.bind_to_address [
"localhost"
"127.0.0.1"
])
|| (lib.hasPrefix "/" cfg.settings.bind_to_address)
)
&& !cfg.openFirewall
)
"Using '${cfg.settings.bind_to_address}' as services.mpd.settings.bind_to_address without enabling services.mpd.openFirewall, might prevent you from accessing MPD from other clients.";