mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-04 00:53:41 +00:00
Refine ipv6only handling
This commit is contained in:
+1
-1
@@ -1835,7 +1835,7 @@ main(int argc, char **argv)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if (is_ipv6only(server_addr, server_num)) {
|
||||
if (is_ipv6only(server_addr, server_num, ipv6first)) {
|
||||
plugin_host = "::1";
|
||||
} else {
|
||||
plugin_host = "127.0.0.1";
|
||||
|
||||
Reference in New Issue
Block a user