diff options
author | Nikolay Amiantov <ab@fmap.me> | 2019-08-18 23:07:14 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2019-08-18 23:07:51 +0300 |
commit | 79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d (patch) | |
tree | 72f2a40697395d7c9e5a06c84f4ebcd533fa09d9 /nixos/modules | |
parent | 388e154b24dc3d1eb31c345acaea3e191528e274 (diff) | |
download | nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar.gz nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar.bz2 nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar.lz nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar.xz nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.tar.zst nixlib-79ebe562fb758b0f0fe62c5b4ffa066ff9fe7b0d.zip |
shadowsocks service: support dual-stack server
Enable IPv6 by default.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/services/networking/shadowsocks.nix | 6 |
1 files 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. ''; }; |