summaryrefslogtreecommitdiffhomepage
path: root/src/main.h
AgeCommit message (Collapse)Author
2020-01-15remove duplicate code calling reload_config_file()rofl0r
as a side effect of not updating the config pointer when loading the config file fails, the "FIXME" level comment to take appropriate action in that case has been removed. the only issue remaining when receiving a SIGHUP and encountering a malformed config file would now be the case that output to syslog/logfile won't be resumed, if initially so configured.
2020-01-15access config via a pointer, not a hardcoded struct addressrofl0r
this is required so we can elegantly swap out an old config for a new one in the future and remove lots of boilerplate from config initialization code. unfortunately this is a quite intrusive change as the config struct was accessed in numerous places, but frankly it should have been done via a pointer right from the start. right now, we simply point to a static struct in main.c, so there shouldn't be any noticeable changes in behaviour.
2009-12-23main: remove global bool processed_config_file.Michael Adam
This seemed out of place. Now the information is stored in the correct places (as log.c:logging_initialized). This way, we will be able to cleanly re-initialize logging during config reload (SIGHUP) in subsequent commits. Michael
2009-12-22main: add convenience wrapper reload_config() for reload_config_file()Michael Adam
Michael
2009-12-07Move definition of "struct config_s" from main.h to conf.hMichael Adam
Michael
2009-12-07main.h: fix tabs ---> spacesMichael Adam
Michael
2009-12-07Don't make config_file const in the config struct.Michael Adam
Michael
2009-12-07Add the anonymous_map hasmap to the config struct.Michael Adam
Michael
2009-12-07Add connect_ports list to config struct instead of keeping extra global var.Michael Adam
Michael
2009-12-07Add access_list to the config struct instead of a global variable in acl.c.Michael Adam
Change insert_acl, check_acl and flush_access_list to take a corresponding argument. Michael
2009-12-06move handling of upstream list to new module upstream.{c,h}Michael Adam
Michael
2009-10-11Add a boolean config option "DisableViaHeader".Michael Adam
2009-09-27conf: turn XTinyproxy into a boolean optionMichael Adam
This is what it actually is. The string value was used in earlier versions to compare against the uri->authority string. But not as a list of sites to create an X-Tinyproxy header for, as the tinyproxy.conf template states... Michael
2009-09-15Revert "Fix constness of stathost"Mukund Sivaraman
This reverts commit 42d2e10c93aacea89b7e5c23c1487a45788715b3.
2009-09-15Fix constness of stathostMukund Sivaraman
2009-09-15Extract cmdline parsing code into a functionMukund Sivaraman
2009-09-15Indent code to Tinyproxy coding styleMukund Sivaraman
The modified files were indented with GNU indent using the following command: indent -npro -kr -i8 -ts8 -sob -l80 -ss -cs -cp1 -bs -nlps -nprs -pcs \ -saf -sai -saw -sc -cdw -ce -nut -il0 No other changes of any sort were made.
2009-09-10make "config_file" a const in the config struct.Michael Adam
Michael
2009-08-07Rename tinyproxy.[ch] to main.[ch]Mukund Sivaraman