mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-03 00:13:42 +00:00
Merge pull request #498 from librehat/master
Support OTA in library interface (fix #497)
This commit is contained in:
@@ -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
@@ -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
|
||||
* };
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user