Skip to content

Commit

Permalink
add -x to enable stat_update_cb for android
Browse files Browse the repository at this point in the history
  • Loading branch information
breakwa11 committed May 21, 2017
1 parent 981037a commit 0a3613a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int verbose = 0;
int keep_resolving = 1;

#ifdef ANDROID
int log_tx_rx = 1;
int log_tx_rx = 0;
int vpn = 0;
uint64_t tx = 0;
uint64_t rx = 0;
Expand Down Expand Up @@ -1509,7 +1509,7 @@ main(int argc, char **argv)
USE_TTY();

#ifdef ANDROID
while ((c = getopt_long(argc, argv, "f:s:p:l:k:t:m:i:c:b:L:a:n:P:huUvVA6"
while ((c = getopt_long(argc, argv, "f:s:p:l:k:t:m:i:c:b:L:a:n:P:xhuUvVA6"
"O:o:G:g:",
long_options, &option_index)) != -1)
#else
Expand Down Expand Up @@ -1620,6 +1620,9 @@ main(int argc, char **argv)
case 'P':
prefix = optarg;
break;
case 'x':
log_tx_rx = 1;
break;
#endif
case '?':
// The option character is not recognized.
Expand Down Expand Up @@ -1774,10 +1777,6 @@ main(int argc, char **argv)
// parse tunnel addr
if (tunnel_addr_str) {
parse_addr(tunnel_addr_str, &tunnel_addr);
#ifdef ANDROID
if (tunnel_addr.host && tunnel_addr.port)
log_tx_rx = 0;
#endif
}

#ifdef __MINGW32__
Expand Down

0 comments on commit 0a3613a

Please sign in to comment.