Fix subnet targets
This commit is contained in:
		
							parent
							
								
									31bb98c995
								
							
						
					
					
						commit
						3ecf06ba46
					
				| @ -1773,7 +1773,7 @@ add_target (struct app_context *ctx, const char *target) | ||||
| 
 | ||||
| 	struct addrinfo hints = { .ai_family = AF_INET }; | ||||
| 	struct addrinfo *result; | ||||
| 	int err = getaddrinfo (target, NULL, &hints, &result); | ||||
| 	int err = getaddrinfo (host, NULL, &hints, &result); | ||||
| 	if (err) | ||||
| 	{ | ||||
| 		print_error ("cannot resolve `%s': %s", host, gai_strerror (err)); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user