Browse Source

Merge pull request #498 from librehat/master

Support OTA in library interface (fix #497)
pull/500/head
Max Lv 8 years ago
parent
commit
44f3ae0b06
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 timeout = profile.timeout;
auth = profile.auth;
mode = profile.mode;
fast_open = profile.fast_open;
verbose = profile.verbose;

4
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
* };
*/

Loading…
Cancel
Save