quassel service: Support multiple listen addresses, fixes #10924

Changed files
+5 -5
nixos
modules
services
networking
+5 -5
nixos/modules/services/networking/quassel.nix
···
'';
};
-
interface = mkOption {
-
default = "127.0.0.1";
+
interfaces = mkOption {
+
default = [ "127.0.0.1" ];
description = ''
-
The interface the Quassel daemon will be listening to. If `127.0.0.1',
-
only clients on the local host can connect to it; if `0.0.0.0', clients
+
The interfaces the Quassel daemon will be listening to. If `[ 127.0.0.1 ]',
+
only clients on the local host can connect to it; if `[ 0.0.0.0 ]', clients
can access it from any network interface.
'';
};
···
serviceConfig =
{
-
ExecStart = "${quassel}/bin/quasselcore --listen=${cfg.interface} --port=${toString cfg.portNumber} --configdir=${cfg.dataDir}";
+
ExecStart = "${quassel}/bin/quasselcore --listen=${concatStringsSep '','' cfg.interfaces} --port=${toString cfg.portNumber} --configdir=${cfg.dataDir}";
User = user;
PermissionsStartOnly = true;
};