From 4ea517daf369b563e726e3b69ed48f1c82257d87 Mon Sep 17 00:00:00 2001 From: Yifu Yu Date: Fri, 14 Jul 2017 14:39:43 +0800 Subject: [PATCH] Fix: ss-local and ss-redir should also respect ipv6_first. --- src/local.c | 3 +++ src/redir.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/local.c b/src/local.c index cf4f6c28..78f6d293 100644 --- a/src/local.c +++ b/src/local.c @@ -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 || diff --git a/src/redir.c b/src/redir.c index 4856007e..38094118 100644 --- a/src/redir.c +++ b/src/redir.c @@ -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; }