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:
Benjamin Cama 2012-01-30 00:16:41 +01:00
parent e7d32f2da8
commit bceebb9a9d
3 changed files with 13 additions and 12 deletions

View file

@ -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);