summaryrefslogtreecommitdiffhomepage
path: root/src/conf.c
AgeCommit message (Collapse)Author
2013-11-22conf: Fix CID 1130973 - resource leak.Michael Adam
Found by coverity. Signed-off-by: Michael Adam <obnox@samba.org>
2013-11-09[BB#63] conf: Allow multiple Listen statements in the config.Michael Adam
This introduces a list (vector) of addresses instead of having just one address string. Signed-off-by: Michael Adam <obnox@samba.org>
2011-03-04Validate port number specified in Port directiveMukund Sivaraman
This was asked in bug #90 comment #8.
2010-08-24[BB#91] Fix upstream proxy support.Michael Adam
Patch by Jordi Mallach.
2010-06-01[BB#89] Don't recompile regular expressionsJohn van der Kamp
This is a modification of a patch originally written by John van der Kamp <john@kirika.demon.nl> at <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=579427#12> The modification was done by the committer.
2010-01-25Fix compiler warning about dereferencing type-punned pointersMukund Sivaraman
2010-01-16conf: reduce indentation in load_config_file()Michael Adam
This replaces a do { ... } while (0) with break statements ba gotos. Imho, this is much clearer. Michael
2010-01-16Fix leak of file handle in load_config_file()Mukund Sivaraman
2010-01-08[BB#17] Add custom HTTP request headers to outgoing HTTP requestsMukund Sivaraman
2010-01-06Fix case in log messageMukund Sivaraman
2009-12-23conf: confess - add my (C) after substantial changes.Michael Adam
Michael
2009-12-22conf: add a log messate ("reloading config file")Michael Adam
Michael
2009-12-22conf: adapt a log message (add quotes to string value)Michael Adam
Michael
2009-12-22conf: elaborate a commentMichael Adam
Michael
2009-12-22conf: change a log message (to be more reasonable?)Michael Adam
Michael
2009-12-22conf: make free_config staticMichael Adam
Michael
2009-12-22conf: make load_config_file static.Michael Adam
Michael
2009-12-22conf: rename reload_config --> reload_config_fileMichael Adam
Michael
2009-12-07Move definition of "struct config_s" from main.h to conf.hMichael Adam
Michael
2009-12-07conf: remove direct use of config from reload_config()Michael Adam
The "conf" argument has to be used. Michael
2009-12-07conf: remove direct reference to config from load_config_file()Michael Adam
This has to use the parameter "conf". Michael
2009-12-07Add reload_config() - (re-)load the config file, keeping defaults.Michael Adam
This allows for later reloading the config at SIGHUP (e.g.). First the old config data is freed, then the defaults that are given as a parameter are copied over in a rather clumsy manual fashion (maybe something more clever can be done here) and finally, the actual config file is loaded. Michael
2009-12-07Add free_config() - free all config data.Michael Adam
Michael
2009-12-07Add connect_ports list to config struct instead of keeping extra global var.Michael Adam
Michael
2009-12-07Move handling of connect_ports list to its own source module.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-07Add reversepath_list parameter to reversepath_add.Michael Adam
Michael
2009-12-07upstream: add upstream list parameter to upstream_add()Michael Adam
to abstract it from the concrete list in the config struct. Michael
2009-12-06move handling of upstream list to new module upstream.{c,h}Michael Adam
Michael
2009-12-06conf: fix tab->spacesMichael Adam
Michael
2009-12-06conf: allow set_string_arg to overwrite previous values (i.e. don't leak)Michael Adam
Michael
2009-11-16set_string_arg: Remove unneccesary check for determining the return code.Michael Adam
2009-11-17Remove excessive copyingMukund Sivaraman
2009-11-14Fix typo in log stringMukund Sivaraman
2009-11-14conf: refactor loading of config file out into load_config_file()Michael Adam
and make config_compile and config_parse static to conf.c Michael
2009-11-10conf: fix reverspath parsing: the string in the 2nd arg is actually the ↵Michael Adam
inner match this fixes bug #64, https://www.banu.com/bugzilla/show_bug.cgi?id=64 the quotes of the string were part of the revers path after parseing. Michael
2009-11-10conf: make the WS optional too, before the optional 2nd argument to reversepathMichael Adam
Michael
2009-11-10conf: fix ipv6 regex patterns, take threeMichael Adam
This extends the pattern by an alternative where there are no double colons. This is for instance the case for and IPv6 address of the form 1111:222:33:4:55:666:7777:888 Michael
2009-11-09conf: fix the IPV6 regex patterns, take twoMichael Adam
The patterns should not end with the end of line marker, since they might be part of a continuing pattern, say of the form ipv6address/mask (used for allow/deny) Michael
2009-11-09conf: fix the IPV6 regex patternsMichael Adam
These are not matched against the beginning of a line but somewhere in the middle (as in "listen <IPv6 address>"). Michael
2009-11-09Fix validation of IPv6 addressesMukund Sivaraman
2009-10-11Add a boolean config option "DisableViaHeader".Michael Adam
2009-09-28conf: beautify one formatting in the directives array.Michael Adam
Michael
2009-09-27conf: make xtinyproxy BOOL in the directives array, tooMichael Adam
Michael
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-21Rename conffile.[ch] to conf.[ch]Mukund Sivaraman