Merge pull request #177321 from rnhmjoj/pr-fix-mpd
mpd: fix socket activation
This commit is contained in:
commit
37b6b161e5
@ -215,6 +215,7 @@ in {
|
||||
systemd.sockets.mpd = mkIf cfg.startWhenNeeded {
|
||||
wantedBy = [ "sockets.target" ];
|
||||
listenStreams = [
|
||||
"" # Note: this is needed to override the upstream unit
|
||||
(if pkgs.lib.hasPrefix "/" cfg.network.listenAddress
|
||||
then cfg.network.listenAddress
|
||||
else "${optionalString (cfg.network.listenAddress != "any") "${cfg.network.listenAddress}:"}${toString cfg.network.port}")
|
||||
|
Loading…
Reference in New Issue
Block a user