shadowsocks / shadowsocks-nodejs

https://github.com/shadowsocks/shadowsocks
Other
1.25k stars 724 forks source link

Listen on both IPV4 and IPV6 addresses #26

Closed madeye closed 11 years ago

madeye commented 11 years ago

Listen on "::" for both IPV4 and IPV6 addresses

clowwindy commented 11 years ago

As I take for example in README, 127.0.0.1 is recommended instead of localhost. And the test using 127.0.0.1 failed(though travis-ci shows a success, I'll fix that later).

madeye commented 11 years ago

Err, I pushed the wrong patch. This "::" should be patched on server.coffee.

clowwindy commented 11 years ago

I found there is no way to getaddrinfo() in nodejs. So the only way is to listen on both "::" and "0.0.0.0".

clowwindy commented 11 years ago

I found that you can listen to either IPv4 or IPv6 on Windows, but you can't listen to both. So I will make it listen on the server IP from config.

madeye commented 11 years ago

OK, it's a better idea.

clowwindy commented 11 years ago

fixed in a10f153da5832230f620c85327b28042bd9d2e63