diff options
author | Michael Adam <obnox@samba.org> | 2009-12-06 01:35:49 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-12-06 01:56:59 +0100 |
commit | 073233b9f14c1693d83dc5ad82a76edb00ec8bd6 (patch) | |
tree | 7af2a26acb455792919a00c3beef206a6a87e31b | |
parent | 055c11f63ce5ea7b5a2e14ee525198dd8c8c3c31 (diff) | |
download | tinyproxy-073233b9f14c1693d83dc5ad82a76edb00ec8bd6.tar.gz tinyproxy-073233b9f14c1693d83dc5ad82a76edb00ec8bd6.zip |
conf: move setting of default stathost to initialize_config_defaults()
Michael
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -312,6 +312,7 @@ static void initialize_config_defaults (struct config_s *conf) * (FIXME: Should have a better API for all this) */ conf->errorpages = NULL; + conf->stathost = safestrdup (TINYPROXY_STATHOST); } int @@ -350,12 +351,6 @@ main (int argc, char **argv) exit (EX_SOFTWARE); } - if (!config.stathost) { - log_message (LOG_INFO, "Setting stathost to \"%s\".", - TINYPROXY_STATHOST); - config.stathost = safestrdup (TINYPROXY_STATHOST); - } - if (!config.user) { log_message (LOG_WARNING, "You SHOULD set a UserName in the " "config file. Using current user instead."); |