support IPv6 in client-multi-server.json
timmyyuan opened this issue · 4 comments
timmyyuan commented
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)
timmyyuan commented
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"]
]
}
arthurkiller commented
@timmyyuan you can contribute with this via a PR
timmyyuan commented
@arthurkiller OK, I have submitted a PR.
arthurkiller commented
close via #468