quassel service: Support multiple listen addresses, fixes #10924
This commit is contained in:
parent
1b33215093
commit
91fe21c854
@ -23,11 +23,11 @@ in
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
interface = mkOption {
|
interfaces = mkOption {
|
||||||
default = "127.0.0.1";
|
default = [ "127.0.0.1" ];
|
||||||
description = ''
|
description = ''
|
||||||
The interface the Quassel daemon will be listening to. If `127.0.0.1',
|
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
|
only clients on the local host can connect to it; if `[ 0.0.0.0 ]', clients
|
||||||
can access it from any network interface.
|
can access it from any network interface.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
@ -88,7 +88,7 @@ in
|
|||||||
|
|
||||||
serviceConfig =
|
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;
|
User = user;
|
||||||
PermissionsStartOnly = true;
|
PermissionsStartOnly = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user