Fix: ss-local and ss-redir should also respect ipv6_first.

This commit is contained in:
Yifu Yu
2017-07-14 01:51:35 -05:00
committed by Max Lv
parent 61e145140d
commit 4ea517daf3
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -1471,6 +1471,9 @@ main(int argc, char **argv)
nofile = conf->nofile;
}
#endif
if (ipv6first == 0) {
ipv6first = conf->ipv6_first;
}
}
if (remote_num == 0 || remote_port == NULL ||
+3
View File
@@ -1080,6 +1080,9 @@ main(int argc, char **argv)
nofile = conf->nofile;
}
#endif
if (ipv6first == 0) {
ipv6first = conf->ipv6_first;
}
dscp_num = conf->dscp_num;
dscp = conf->dscp;
}