mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 16:45:53 +00:00
Replace nonce cache with a ping-pong bloom filter (#1282)
* Add Ping-Pong bloom filter * Refine bloom filter insertion * Reduce the error rate to 0.00001 * Avoid alignment issue in murmurhash2 * Fix a memory leak * Fix build on non-GPU targets * Detect get_current_dir_name in configure * Update README.md * Remove redudant bfree() * Reduce the memory usage for local client * Fix #1275 * Refine #1275 * Use IP when bypassing SNI domains * Also apply replay detector on UDP traffic * Update deb build script Now build script is able to auto detect system and choose libraries necessary to build. Also update the README accordingly. * Update build script to enable jessie/stretch etc Also include a few cleanup that simplified pkg installation from backports repository.
This commit is contained in:
+3
-16
@@ -151,10 +151,6 @@ construct_command_line(struct manager_ctx *manager, struct server *server)
|
||||
int len = strlen(cmd);
|
||||
snprintf(cmd + len, BUF_SIZE - len, " -u");
|
||||
}
|
||||
if (manager->auth) {
|
||||
int len = strlen(cmd);
|
||||
snprintf(cmd + len, BUF_SIZE - len, " -A");
|
||||
}
|
||||
if (manager->fast_open) {
|
||||
int len = strlen(cmd);
|
||||
snprintf(cmd + len, BUF_SIZE - len, " --fast-open");
|
||||
@@ -884,7 +880,6 @@ main(int argc, char **argv)
|
||||
char *plugin = NULL;
|
||||
char *plugin_opts = NULL;
|
||||
|
||||
int auth = 0;
|
||||
int fast_open = 0;
|
||||
int reuse_port = 0;
|
||||
int mode = TCP_ONLY;
|
||||
@@ -999,14 +994,14 @@ main(int argc, char **argv)
|
||||
case 'h':
|
||||
usage();
|
||||
exit(EXIT_SUCCESS);
|
||||
case 'A':
|
||||
auth = 1;
|
||||
break;
|
||||
#ifdef HAVE_SETRLIMIT
|
||||
case 'n':
|
||||
nofile = atoi(optarg);
|
||||
break;
|
||||
#endif
|
||||
case 'A':
|
||||
FATAL("One time auth has been deprecated. Try AEAD ciphers instead.");
|
||||
break;
|
||||
case '?':
|
||||
// The option character is not recognized.
|
||||
LOGE("Unrecognized option: %s", optarg);
|
||||
@@ -1047,9 +1042,6 @@ main(int argc, char **argv)
|
||||
if (conf->nameserver != NULL) {
|
||||
nameservers[nameserver_num++] = conf->nameserver;
|
||||
}
|
||||
if (auth == 0) {
|
||||
auth = conf->auth;
|
||||
}
|
||||
if (mode == TCP_ONLY) {
|
||||
mode = conf->mode;
|
||||
}
|
||||
@@ -1107,10 +1099,6 @@ main(int argc, char **argv)
|
||||
#endif
|
||||
}
|
||||
|
||||
if (auth) {
|
||||
LOGI("onetime authentication enabled");
|
||||
}
|
||||
|
||||
// ignore SIGPIPE
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
@@ -1130,7 +1118,6 @@ main(int argc, char **argv)
|
||||
manager.fast_open = fast_open;
|
||||
manager.verbose = verbose;
|
||||
manager.mode = mode;
|
||||
manager.auth = auth;
|
||||
manager.password = password;
|
||||
manager.timeout = timeout;
|
||||
manager.method = method;
|
||||
|
||||
Reference in New Issue
Block a user