lol

quassel service: Support multiple listen addresses, fixes #10924

authored by

Alexei Robyn and committed by
Rok Garbas
91fe21c8 1b332150

+5 -5
+5 -5
nixos/modules/services/networking/quassel.nix
··· 23 23 ''; 24 24 }; 25 25 26 - interface = mkOption { 27 - default = "127.0.0.1"; 26 + interfaces = mkOption { 27 + default = [ "127.0.0.1" ]; 28 28 description = '' 29 - The interface the Quassel daemon will be listening to. If `127.0.0.1', 30 - only clients on the local host can connect to it; if `0.0.0.0', clients 29 + The interfaces the Quassel daemon will be listening to. If `[ 127.0.0.1 ]', 30 + only clients on the local host can connect to it; if `[ 0.0.0.0 ]', clients 31 31 can access it from any network interface. 32 32 ''; 33 33 }; ··· 88 88 89 89 serviceConfig = 90 90 { 91 - ExecStart = "${quassel}/bin/quasselcore --listen=${cfg.interface} --port=${toString cfg.portNumber} --configdir=${cfg.dataDir}"; 91 + ExecStart = "${quassel}/bin/quasselcore --listen=${concatStringsSep '','' cfg.interfaces} --port=${toString cfg.portNumber} --configdir=${cfg.dataDir}"; 92 92 User = user; 93 93 PermissionsStartOnly = true; 94 94 };