shadowsocks/shadowsocks-go

support IPv6 in client-multi-server.json

timmyyuan opened this issue · 4 comments

Description : client-multi-server.json in sample-config/ could not support multiple IPv6 servers.

./shadowcoks-local -c sample-config/client-multi-server.json
2019/03/06 10:42:13 no port for server xxxx (a IPv6 host here)

Sorry my mistake, maybe there need an annotation for newcomers like me ? such as
IPv4 version

{
	"local_port": 1081,
	"server_password": [
		["127.0.0.1:8387", "foobar"],
		["127.0.0.1:8388", "barfoo", "aes-128-cfb"]
	]
}

and it's correspond IPv6 version

{
	"local_port": 1081,
	"server_password": [
		["[::1]:8387", "foobar"],
		["[::1]:8388", "barfoo", "aes-128-cfb"]
	]
}

@timmyyuan you can contribute with this via a PR

@arthurkiller OK, I have submitted a PR.

close via #468