[BB#91] Fix upstream proxy support.
Patch by Jordi Mallach.
This commit is contained in:
		
							parent
							
								
									4b75b634d9
								
							
						
					
					
						commit
						5012ce690f
					
				@ -1046,8 +1046,8 @@ static HANDLE_FUNC (handle_upstream)
 | 
			
		||||
                return -1;
 | 
			
		||||
        port = (int) get_long_arg (line, &match[7]);
 | 
			
		||||
 | 
			
		||||
        if (match[9].rm_so != -1) {
 | 
			
		||||
                domain = get_string_arg (line, &match[9]);
 | 
			
		||||
        if (match[10].rm_so != -1) {
 | 
			
		||||
                domain = get_string_arg (line, &match[10]);
 | 
			
		||||
                if (domain) {
 | 
			
		||||
                        upstream_add (ip, port, domain, &conf->upstream_list);
 | 
			
		||||
                        safefree (domain);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user