mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-03 19:33:23 +08:00 
			
		
		
		
	Make ot_try_bind local again. Also dont handle multi cast udp packets in opentracker.c, ot_livesync.c does it by itself.
This commit is contained in:
		
							parent
							
								
									01ea1648d8
								
							
						
					
					
						commit
						17724dde29
					
				@ -202,8 +202,6 @@ static void server_mainloop( ) {
 | 
			
		||||
        handle_accept( i );
 | 
			
		||||
      else if( (int)cookie == FLAG_UDP )
 | 
			
		||||
        handle_udp4( i );
 | 
			
		||||
      else if( (int)cookie == FLAG_MCA )
 | 
			
		||||
        handle_livesync(i);
 | 
			
		||||
      else
 | 
			
		||||
        handle_read( i );
 | 
			
		||||
    }
 | 
			
		||||
@ -233,7 +231,7 @@ static void server_mainloop( ) {
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
 | 
			
		||||
static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) {
 | 
			
		||||
  int64 s = proto == FLAG_TCP ? socket_tcp4( ) : socket_udp4();
 | 
			
		||||
 | 
			
		||||
#ifdef _DEBUG
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user