Merge pull request #498 from librehat/master

Support OTA in library interface (fix #497)
This commit is contained in:
Max Lv
2015-12-25 23:00:01 +08:00
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -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;
+3 -1
View File
@@ -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
* };
*/