mirror of
				https://github.com/wangyu-/udp2raw.git
				synced 2025-11-04 12:15:35 +08:00 
			
		
		
		
	fix invalid filter expression
This commit is contained in:
		
							
								
								
									
										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)
 | 
			
		||||
	{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user