shadowsocks service: support dual-stack server

Enable IPv6 by default.
This commit is contained in:
Nikolay Amiantov 2019-08-18 23:07:14 +03:00
parent 388e154b24
commit 79ebe562fb

View File

@ -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.
'';
};