Fix binding of the cli to the configured address
We used to read the configuration file /after/ binding the cli. Fix that. Signed-off-by: Benjamin Cama <benoar@dolka.fr>
This commit is contained in:
parent
e7d32f2da8
commit
bceebb9a9d
3 changed files with 13 additions and 12 deletions
2
l2tpns.c
2
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue