conf: move setting of default stathost to initialize_config_defaults()
Michael
This commit is contained in:
parent
055c11f63c
commit
073233b9f1
@ -312,6 +312,7 @@ static void initialize_config_defaults (struct config_s *conf)
|
|||||||
* (FIXME: Should have a better API for all this)
|
* (FIXME: Should have a better API for all this)
|
||||||
*/
|
*/
|
||||||
conf->errorpages = NULL;
|
conf->errorpages = NULL;
|
||||||
|
conf->stathost = safestrdup (TINYPROXY_STATHOST);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -350,12 +351,6 @@ main (int argc, char **argv)
|
|||||||
exit (EX_SOFTWARE);
|
exit (EX_SOFTWARE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!config.stathost) {
|
|
||||||
log_message (LOG_INFO, "Setting stathost to \"%s\".",
|
|
||||||
TINYPROXY_STATHOST);
|
|
||||||
config.stathost = safestrdup (TINYPROXY_STATHOST);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!config.user) {
|
if (!config.user) {
|
||||||
log_message (LOG_WARNING, "You SHOULD set a UserName in the "
|
log_message (LOG_WARNING, "You SHOULD set a UserName in the "
|
||||||
"config file. Using current user instead.");
|
"config file. Using current user instead.");
|
||||||
|
Loading…
Reference in New Issue
Block a user