unet-cli: strip initial newline in usage message
[project/unetd.git] / cli.c
diff --git a/cli.c b/cli.c
index 24a06b31bbfee228187403958f8e75bc9f920050..e3654f60bc7e5231a5e6258bc2b3d451fda30cb5 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -274,7 +274,7 @@ static int cmd_sync(const char *endpoint, int argc, char **argv)
                        return 1;
        }
 
-       if (network_get_endpoint(&ep, endpoint, UNETD_GLOBAL_PEX_PORT, 0) < 0) {
+       if (network_get_endpoint(&ep, AF_UNSPEC, endpoint, UNETD_GLOBAL_PEX_PORT, 0) < 0) {
                INFO("Invalid hostname/port %s\n", endpoint);
                return 1;
        }