Browse Source

Support OTA in library interface

pull/498/head
Symeon Huang 9 years ago
parent
commit
05a15aa187
2 changed files with 4 additions and 1 deletions
  1. 1
      src/local.c
  2. 4
      src/shadowsocks.h

1
src/local.c

@ -1277,6 +1277,7 @@ int start_ss_local_server(profile_t profile)
int local_port = profile.local_port; int local_port = profile.local_port;
int timeout = profile.timeout; int timeout = profile.timeout;
auth = profile.auth;
mode = profile.mode; mode = profile.mode;
fast_open = profile.fast_open; fast_open = profile.fast_open;
verbose = profile.verbose; verbose = profile.verbose;

4
src/shadowsocks.h

@ -36,7 +36,8 @@ typedef struct {
char *acl; // file path to acl char *acl; // file path to acl
char *log; // file path to log char *log; // file path to log
int fast_open; // enable tcp fast open 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 int verbose; // verbose mode
} profile_t; } profile_t;
@ -54,6 +55,7 @@ typedef struct {
* .log = NULL, * .log = NULL,
* .fast_open = 0, * .fast_open = 0,
* .mode = 0, * .mode = 0,
* .auth = 0,
* .verbose = 0 * .verbose = 0
* }; * };
*/ */

Loading…
Cancel
Save