Skip to content

Commit

Permalink
init server_cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed May 7, 2017
1 parent cc038a9 commit 2e4b8ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -2021,6 +2021,10 @@ start_ss_local_server(profile_t profile)
server_def_t *serv = &listen_ctx.servers[0];
ss_server_t server_cfg;
ss_server_t *serv_cfg = &server_cfg;
server_cfg.protocol = 0;
server_cfg.protocol_param = 0;
server_cfg.obfs = 0;
server_cfg.obfs_param = 0;
serv->addr = serv->addr_udp = storage;
serv->addr_len = serv->addr_udp_len = get_sockaddr_len((struct sockaddr *) storage);
listen_ctx.timeout = timeout;
Expand Down

0 comments on commit 2e4b8ef

Please sign in to comment.