Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Aug 31, 2018
1 parent f0e36d7 commit 6b8852f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,16 @@ void process_arg(int argc, char *argv[]) //process all options
log_bare(log_info,"socket_buf_size=%d ",socket_buf_size);

log_bare(log_info,"\n");

if(auto_add_iptables_rule&& use_tcp_dummy_socket)
{
mylog(log_error,"-a,--auto-rule is not supposed to be used with easyfaketcp mode, you are likely making a mistake, but we can try to continue\n");
}

if(keep_rule&& use_tcp_dummy_socket)
{
mylog(log_error,"--keep-rule is not supposed to be used with easyfaketcp mode, you are likely making a mistake, but we can try to continue\n");
}
}

void pre_process_arg(int argc, char *argv[])//mainly for load conf file
Expand Down

0 comments on commit 6b8852f

Please sign in to comment.