From 3ecf06ba468792c54bb8fd4e0804430ba0ab9cfd Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Fri, 26 Sep 2014 20:52:24 +0200
Subject: Fix subnet targets
---
ponymap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ponymap.c b/ponymap.c
index e11c559..6ebf10e 100644
--- a/ponymap.c
+++ b/ponymap.c
@@ -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));
--
cgit v1.2.3-70-g09d2