diff --git a/src/local.c b/src/local.c index f3d11e8c..348b9c7d 100644 --- a/src/local.c +++ b/src/local.c @@ -1018,7 +1018,7 @@ int main(int argc, char **argv) } if (local_addr == NULL) { - local_addr = "0.0.0.0"; + local_addr = "127.0.0.1"; } if (pid_flags) { @@ -1162,7 +1162,7 @@ int start_ss_local_server(profile_t profile) } if (local_addr == NULL) { - local_addr = "0.0.0.0"; + local_addr = "127.0.0.1"; } #ifdef __MINGW32__ diff --git a/src/redir.c b/src/redir.c index caa8213b..931554b8 100644 --- a/src/redir.c +++ b/src/redir.c @@ -693,7 +693,7 @@ int main(int argc, char **argv) } if (local_addr == NULL) { - local_addr = "0.0.0.0"; + local_addr = "127.0.0.1"; } if (pid_flags) { diff --git a/src/tunnel.c b/src/tunnel.c index b1bd5061..2959f940 100644 --- a/src/tunnel.c +++ b/src/tunnel.c @@ -747,7 +747,7 @@ int main(int argc, char **argv) } if (local_addr == NULL) { - local_addr = "0.0.0.0"; + local_addr = "127.0.0.1"; } if (pid_flags) {