summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/ip-route-get.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/ip-route-get.c b/commands/ip-route-get.c
index b3d4ecc..d3c15b7 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));