mirror of
https://github.com/wangyu-/udp2raw.git
synced 2025-02-07 23:59:36 +08:00
fix invalid filter expression
This commit is contained in:
parent
d85bb78139
commit
e110f759eb
4
main.cpp
4
main.cpp
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user