From aa622f6f001d8b1823c6535ca3dc8190d7adb815 Mon Sep 17 00:00:00 2001 From: John Date: Sat, 17 Sep 2022 18:04:50 +0200 Subject: [PATCH] allow empty url --- src/ebusd/knxhandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ebusd/knxhandler.cpp b/src/ebusd/knxhandler.cpp index bc939327..b4bdf4f8 100644 --- a/src/ebusd/knxhandler.cpp +++ b/src/ebusd/knxhandler.cpp @@ -54,7 +54,7 @@ using std::dec; /** the definition of the KNX arguments. */ static const struct argp_option g_knx_argp_options[] = { {nullptr, 0, nullptr, 0, "KNX options:", 1 }, - {"knxurl", O_URL, "URL", 0, "Connect to KNX daemon on URL (i.e. \"[multicast][@interface]\" for KNXnet/IP" + {"knxurl", O_URL, "URL", 0, "URL to open (i.e. \"[multicast][@interface]\" for KNXnet/IP" #ifdef HAVE_KNXD " or \"ip:host[:port]\" / \"local:/socketpath\" for knxd" #endif @@ -82,8 +82,8 @@ static vector* g_integrationVars = nullptr; //!< the integration settin static error_t knx_parse_opt(int key, char *arg, struct argp_state *state) { result_t result; switch (key) { - case O_URL: // --knxurl=localhost - if (arg == nullptr || arg[0] == 0) { + case O_URL: // --knxurl=[multicast][@interface] + if (arg == nullptr) { // empty is allowed argp_error(state, "invalid knxurl"); return EINVAL; }