Skip to content

Commit

Permalink
trival
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu- committed Aug 31, 2018
1 parent 6b8852f commit d772715
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,16 @@ void process_arg(int argc, char *argv[]) //process all options
raw_ip_version=local_addr.get_type();
}

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");
}

mylog(log_info,"important variables: ");

log_bare(log_info,"log_level=%d:%s ",log_level,log_text[log_level]);
Expand All @@ -791,15 +801,6 @@ void process_arg(int argc, char *argv[]) //process all options

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 d772715

Please sign in to comment.