diff options
author | Alexei Robyn <shados@shados.net> | 2015-11-10 03:53:37 +1100 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2015-11-10 11:10:21 +0100 |
commit | 91fe21c854407dede0776e7bda415ae5b62d744a (patch) | |
tree | b626d70f0943305ffb0dffa4e019f9918bdca811 | |
parent | 1b33215093a27575107dddbab3b98e6936685947 (diff) | |
download | nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar.gz nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar.bz2 nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar.lz nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar.xz nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.tar.zst nixpkgs-91fe21c854407dede0776e7bda415ae5b62d744a.zip |
quassel service: Support multiple listen addresses, fixes #10924
-rw-r--r-- | nixos/modules/services/networking/quassel.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/quassel.nix b/nixos/modules/services/networking/quassel.nix index 15db2d5346b..52c7ac8e689 100644 --- a/nixos/modules/services/networking/quassel.nix +++ b/nixos/modules/services/networking/quassel.nix @@ -23,11 +23,11 @@ in ''; }; - 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. ''; }; @@ -88,7 +88,7 @@ in 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; }; |