mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-21 06:23:52 +00:00
Merge pull request #281 from JohnnySun/develop
Add use /etc/shadowsocks/config.json for ss-redir ss-server ss-tunnel
This commit is contained in:
+8
-1
@@ -47,6 +47,7 @@
|
||||
|
||||
#include "netutils.h"
|
||||
#include "utils.h"
|
||||
#include "common.h"
|
||||
#include "redir.h"
|
||||
|
||||
#ifndef EAGAIN
|
||||
@@ -653,7 +654,13 @@ int main(int argc, char **argv)
|
||||
usage();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
if(argc == 1) {
|
||||
if(conf_path == NULL) {
|
||||
conf_path = DEFAULT_CONF_PATH;
|
||||
}
|
||||
}
|
||||
|
||||
if (conf_path != NULL) {
|
||||
jconf_t *conf = read_jconf(conf_path);
|
||||
if (remote_num == 0) {
|
||||
|
||||
+7
-1
@@ -1154,7 +1154,13 @@ int main(int argc, char **argv)
|
||||
usage();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
if(argc == 1) {
|
||||
if(conf_path == NULL) {
|
||||
conf_path = DEFAULT_CONF_PATH;
|
||||
}
|
||||
}
|
||||
|
||||
if (conf_path != NULL) {
|
||||
jconf_t *conf = read_jconf(conf_path);
|
||||
if (server_num == 0) {
|
||||
|
||||
+7
-1
@@ -709,7 +709,13 @@ int main(int argc, char **argv)
|
||||
usage();
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
||||
if(argc == 1) {
|
||||
if(conf_path == NULL) {
|
||||
conf_path = DEFAULT_CONF_PATH;
|
||||
}
|
||||
}
|
||||
|
||||
if (conf_path != NULL) {
|
||||
jconf_t *conf = read_jconf(conf_path);
|
||||
if (remote_num == 0) {
|
||||
|
||||
Reference in New Issue
Block a user