changed iptables -A to -I, auth_mode: simple

This commit is contained in:
wangyu
2017-08-04 21:46:49 +08:00
parent acece0b329
commit 956bc5ab06
5 changed files with 84 additions and 32 deletions

View File

@@ -52,7 +52,7 @@ char * my_ntoa(u32_t ip)
int add_iptables_rule(char * s)
{
strcpy(iptables_rule,s);
char buf[300]="iptables -A ";
char buf[300]="iptables -I ";
strcat(buf,s);
if(system(buf)==0)
{