mirror of
				https://github.com/berlin-open-wireless-lab/DAWN.git
				synced 2025-03-09 15:40:12 +00:00 
			
		
		
		
	ubus: only update TCP socket list when using TCP connections
DAWN currently tries to update it's list of TCP socket endpoints using mDNS when it is configured to use UDP. Only update the TCP socket list when DAWN is configured to use TCP sockets. Fix a identation mismatch along the way.
This commit is contained in:
		
							parent
							
								
									ae90e6dfd1
								
							
						
					
					
						commit
						617080a7c9
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -842,10 +842,9 @@ int dawn_init_ubus(const char *ubus_socket, const char *hostapd_dir) {
 | 
			
		|||
 | 
			
		||||
    ubus_add_oject();
 | 
			
		||||
 | 
			
		||||
    start_umdns_update();
 | 
			
		||||
 | 
			
		||||
    if (network_config.network_option == 2)
 | 
			
		||||
    {
 | 
			
		||||
        start_umdns_update();
 | 
			
		||||
        if(run_server(network_config.tcp_port))
 | 
			
		||||
            uloop_timeout_set(&usock_timer, 1 * 1000);
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue