From 05a15aa1879926d180845218c6e4d889250bff74 Mon Sep 17 00:00:00 2001 From: Symeon Huang Date: Fri, 25 Dec 2015 14:46:33 +0000 Subject: [PATCH] Support OTA in library interface --- src/local.c | 1 + src/shadowsocks.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/local.c b/src/local.c index 2881c6c8..7a89a66b 100644 --- a/src/local.c +++ b/src/local.c @@ -1277,6 +1277,7 @@ int start_ss_local_server(profile_t profile) int local_port = profile.local_port; int timeout = profile.timeout; + auth = profile.auth; mode = profile.mode; fast_open = profile.fast_open; verbose = profile.verbose; diff --git a/src/shadowsocks.h b/src/shadowsocks.h index 45143d26..74afabde 100644 --- a/src/shadowsocks.h +++ b/src/shadowsocks.h @@ -36,7 +36,8 @@ typedef struct { char *acl; // file path to acl char *log; // file path to log int fast_open; // enable tcp fast open - int mode; // enable udp relay + int mode; // enable udp relay + int auth; // enable one-time authentication int verbose; // verbose mode } profile_t; @@ -54,6 +55,7 @@ typedef struct { * .log = NULL, * .fast_open = 0, * .mode = 0, + * .auth = 0, * .verbose = 0 * }; */