From 79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 18 Aug 2019 23:07:14 +0300 Subject: [PATCH] shadowsocks service: support dual-stack server Enable IPv6 by default. --- nixos/modules/services/networking/shadowsocks.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/networking/shadowsocks.nix b/nixos/modules/services/networking/shadowsocks.nix index fe6d65a5f963..af12db590f00 100644 --- a/nixos/modules/services/networking/shadowsocks.nix +++ b/nixos/modules/services/networking/shadowsocks.nix @@ -35,10 +35,10 @@ in }; localAddress = mkOption { - type = types.str; - default = "0.0.0.0"; + type = types.coercedTo types.str singleton (types.listOf types.str); + default = [ "[::0]" "0.0.0.0" ]; description = '' - Local address to which the server binds. + Local addresses to which the server binds. ''; };