From d77271540f7c09e993e829bbfde34323ab4bf966 Mon Sep 17 00:00:00 2001 From: wangyu- Date: Fri, 31 Aug 2018 12:51:27 -0500 Subject: [PATCH] trival --- misc.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/misc.cpp b/misc.cpp index e999574..60ea415 100644 --- a/misc.cpp +++ b/misc.cpp @@ -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]); @@ -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