From 78b1d0fa1ec8f6283e514d4d68ad08fc0f16a578 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 4 Jan 2019 16:14:28 +0100 Subject: net: ip_route_get: resolv hostnames When global.net.server is a hostname instead of an IP address we have to resolv it. Signed-off-by: Sascha Hauer --- commands/ip-route-get.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ip-route-get.c b/commands/ip-route-get.c index b3d4ecce82..d3c15b7798 100644 --- a/commands/ip-route-get.c +++ b/commands/ip-route-get.c @@ -40,7 +40,7 @@ static int do_ip_route_get(int argc, char *argv[]) if (argc == optind + 2) variable = argv[optind + 1]; - ret = string_to_ip(argv[optind], &ip); + ret = resolv(argv[optind], &ip); if (ret) { printf("Cannot convert \"%s\" into a IP address: %s\n", argv[optind], strerror(-ret)); -- cgit v1.2.3