mirror of
				https://github.com/ossrs/srs.git
				synced 2025-03-09 15:49:59 +00:00 
			
		
		
		
	Only discover api server ip as candidate.
This commit is contained in:
		
							parent
							
								
									6919011e86
								
							
						
					
					
						commit
						51ca3fd80a
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
					@ -178,8 +178,7 @@ srs_error_t api_server_as_candidates(string api, set<string>& candidate_ips)
 | 
				
			||||||
        return err;
 | 
					        return err;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Try to add the original hostname and ip as candidates.
 | 
					    // Try to add the API server ip as candidates.
 | 
				
			||||||
    candidate_ips.insert(hostname);
 | 
					 | 
				
			||||||
    candidate_ips.insert(ip);
 | 
					    candidate_ips.insert(ip);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return err;
 | 
					    return err;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue