mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	Web API: reply 501 if /sdrdaemon requests are sent to a SDRangel instance
This commit is contained in:
		
							parent
							
								
									7dbb36e0b6
								
							
						
					
					
						commit
						5f15936820
					
				@ -87,6 +87,16 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (path.startsWith("/sdrdaemon"))
 | 
			
		||||
        {
 | 
			
		||||
            SWGSDRangel::SWGErrorResponse errorResponse;
 | 
			
		||||
            response.setStatus(501,"Not implemented");
 | 
			
		||||
            errorResponse.init();
 | 
			
		||||
            *errorResponse.getMessage() = "Not implemented";
 | 
			
		||||
            response.write(errorResponse.asJson().toUtf8());
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (path == WebAPIAdapterInterface::instanceSummaryURL) {
 | 
			
		||||
            instanceSummaryService(request, response);
 | 
			
		||||
        } else if (path == WebAPIAdapterInterface::instanceDevicesURL) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user