Fix binding of the cli to the configured address
[l2tpns.git] / l2tpns.c
index 2d53ea2..3488002 100644 (file)
--- a/l2tpns.c
+++ b/l2tpns.c
@@ -4717,7 +4717,7 @@ int main(int argc, char *argv[])
        /* set hostname /after/ having read the config file */
        if (*config->hostname)
                strcpy(hostname, config->hostname);
-       cli_init_hostname(hostname);
+       cli_init_complete(hostname);
        update_config();
        init_tbf(config->num_tbfs);