diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-06-19 22:39:20 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:54 -0400 |
commit | 4b9da9f1e8fb12dc136d1a384d003ac502385159 (patch) | |
tree | 0cf73a1d4836d2749508cdcd9915a9a04a3106b0 /src/configfile.h | |
parent | e34ce5f2177eb70089549662f42d61e176a75421 (diff) | |
download | lighttpd-git-4b9da9f1e8fb12dc136d1a384d003ac502385159.tar.gz |
[core] parse $HTTP["remote-ip"] CIDR mask at start
parse $HTTP["remote-ip"] CIDR mask into structured data at startup
note: adds buffer_move() to configparser.y to reduce memory copying
for all config values, and is required for remote-ip to preserve the
structured data added after the config value string. (Alternatively,
could have normalized the remote-ip value after copying into dc->string)
Diffstat (limited to 'src/configfile.h')
-rw-r--r-- | src/configfile.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/configfile.h b/src/configfile.h index 70c6659a..f38263c6 100644 --- a/src/configfile.h +++ b/src/configfile.h @@ -78,4 +78,7 @@ int config_parse_file(server *srv, config_t *context, const char *fn); __attribute_cold__ int config_parse_cmd(server *srv, config_t *context, const char *cmd); +__attribute_cold__ +int config_remoteip_normalize(buffer *b, buffer *tb); + #endif |