fix invalid filter expression

This commit is contained in:
U-DESKTOP-T772REH\wangyu 2018-06-19 02:21:31 +08:00
parent d85bb78139
commit e110f759eb
2 changed files with 5 additions and 1 deletions

@ -820,6 +820,10 @@ int client_event_loop()
strcpy(dev,d->name);
}
}
else
{
log_bare(log_debug," [unknow:%d]",int(a->addr->sa_family));
}
}
if(cnt==0) log_bare(log_info," [no ip found]");
if(d->description==0)

@ -484,7 +484,7 @@ void init_filter(int port)
}
else if(raw_mode==mode_udp)
{
sprintf(filter_exp,"udp and src %s and src port %d abd dst port %d",remote_ip,remote_port,port);
sprintf(filter_exp,"udp and src %s and src port %d and dst port %d",remote_ip,remote_port,port);
}
else if(raw_mode==mode_icmp)
{