summaryrefslogtreecommitdiff
path: root/src/conf.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2013-11-09[BB#63] conf: Allow multiple Listen statements in the config.Michael Adam1-7/+33
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 Sivaraman1-1/+9
This was asked in bug #90 comment #8.
2010-08-24[BB#91] Fix upstream proxy support.Michael Adam1-2/+2
Patch by Jordi Mallach.
2010-06-01[BB#89] Don't recompile regular expressionsJohn van der Kamp1-2/+26
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 Sivaraman1-15/+16
2010-01-16conf: reduce indentation in load_config_file()Michael Adam1-15/+14
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 Sivaraman1-14/+21
2010-01-08[BB#17] Add custom HTTP request headers to outgoing HTTP requestsMukund Sivaraman1-1/+45
2010-01-06Fix case in log messageMukund Sivaraman1-1/+1
2009-12-23conf: confess - add my (C) after substantial changes.Michael Adam1-0/+1
Michael
2009-12-22conf: add a log messate ("reloading config file")Michael Adam1-0/+2
Michael
2009-12-22conf: adapt a log message (add quotes to string value)Michael Adam1-1/+1
Michael
2009-12-22conf: elaborate a commentMichael Adam1-1/+4
Michael
2009-12-22conf: change a log message (to be more reasonable?)Michael Adam1-1/+1
Michael
2009-12-22conf: make free_config staticMichael Adam1-1/+1
Michael
2009-12-22conf: make load_config_file static.Michael Adam1-1/+1
Michael
2009-12-22conf: rename reload_config --> reload_config_fileMichael Adam1-2/+2
Michael
2009-12-07Move definition of "struct config_s" from main.h to conf.hMichael Adam1-2/+0
Michael
2009-12-07conf: remove direct use of config from reload_config()Michael Adam1-1/+1
The "conf" argument has to be used. Michael
2009-12-07conf: remove direct reference to config from load_config_file()Michael Adam1-1/+1
This has to use the parameter "conf". Michael
2009-12-07Add reload_config() - (re-)load the config file, keeping defaults.Michael Adam1-0/+135
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 Adam1-0/+31
Michael
2009-12-07Add connect_ports list to config struct instead of keeping extra global var.Michael Adam1-1/+2
Michael
2009-12-07Move handling of connect_ports list to its own source module.Michael Adam1-0/+1
Michael
2009-12-07Add access_list to the config struct instead of a global variable in acl.c.Michael Adam1-2/+2
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 Adam1-2/+2
Michael
2009-12-07upstream: add upstream list parameter to upstream_add()Michael Adam1-3/+3
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 Adam1-0/+1
Michael
2009-12-06conf: fix tab->spacesMichael Adam1-1/+1
Michael
2009-12-06conf: allow set_string_arg to overwrite previous values (i.e. don't leak)Michael Adam1-0/+4
Michael
2009-11-16set_string_arg: Remove unneccesary check for determining the return code.Michael Adam1-1/+1
2009-11-17Remove excessive copyingMukund Sivaraman1-2/+3
2009-11-14Fix typo in log stringMukund Sivaraman1-1/+1
2009-11-14conf: refactor loading of config file out into load_config_file()Michael Adam1-2/+27
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 Adam1-2/+2
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 Adam1-1/+1
Michael
2009-11-10conf: fix ipv6 regex patterns, take threeMichael Adam1-0/+1
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 Adam1-17/+17
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 Adam1-17/+17
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 Sivaraman1-4/+27
2009-10-11Add a boolean config option "DisableViaHeader".Michael Adam1-0/+15
2009-09-28conf: beautify one formatting in the directives array.Michael Adam1-1/+2
Michael
2009-09-27conf: make xtinyproxy BOOL in the directives array, tooMichael Adam1-1/+1
Michael
2009-09-27conf: turn XTinyproxy into a boolean optionMichael Adam1-1/+1
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 Sivaraman1-0/+759