aboutsummaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2020-02-28 10:07:54 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2020-02-28 10:07:54 +0200
commit73bfc3bdfac590266ad67c48de5e866bb5d5fa4d (patch)
tree2488c3b3b009c0c49f56a63f10df7340432588c4 /NEWS
parent7e8ff0ed908913de7467daa28feb25164abc7ad9 (diff)
downloadping903-73bfc3bdfac590266ad67c48de5e866bb5d5fa4d.tar.gz
ping903-73bfc3bdfac590266ad67c48de5e866bb5d5fa4d.tar.bz2
Implement here-document syntax in configuration file.
Here-document is supported for ip-list and trusted-ip statements. * doc/ping903.conf.5: Document the here-document syntax. * NEWS: Likewise. * examples/inspect: Mention that the created output is a valid configuration file. * src/config.c: Support for here-document. * src/defs.h: Mark printf-like functions as such. * src/ping903.h (CF_HEREDOC_OPCODE): New data type. (cf_callback_arg): Add heredoc member. (STMT_T_HEREDOC): New statement type. * src/remoteip.c (cf_trusted_ip_heredoc): New function. * src/ping903.c: Fix format strings and unused variables. * src/ping903q.c: Likewise. * src/pinger.c: Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS13
1 files changed, 12 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 920702f..d661fe6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-Ping903 -- history of user-visible changes. 2020-02-27
+Ping903 -- history of user-visible changes. 2020-02-28
See the end of file for copying conditions.
Please send Ping903 bug reports to <gray@gnu.org>
@@ -7,6 +7,17 @@ Version 0.4.90 (Git)
* Support for HTTP basic authorization.
+* Support for "here-document" syntax in config file.
+
+Two statements allow the use of here-document: ip-list and
+trusted-ip. Example:
+
+ ip-list <<EOF
+ 98.51.100.10
+ 203.0.113.1
+ 192.0.2.15
+ EOF
+
Version 0.4, 2020-92-27

Return to:

Send suggestions and report system problems to the System administrator.