-
Notifications
You must be signed in to change notification settings - Fork 743
Closed
Description
Hello,
the man page says
The Tinyproxy configuration file contains key-value pairs, one per line. Lines starting with `#` and empty lines are comments and are ignored. Keywords are case-insensitive, whereas
values are case-sensitive. Values may be enclosed in double-quotes (") if they contain spaces.
So for example this should be OK, as man paghe says.
PidFile /run/tinyproxy/tinyproxy.pid`
but the definition in the code is
#define WS SPACE "+"
#define STR "\"([^\"]+)\""
#define BOOL "(yes\|on\|no\|off)"
#define INT "(()" DIGIT "+)"
#define ALNUM "([-a-z0-9._]+)"
That means the STR must be quoted.
I'm trying to setup some kind of automated generated configs. I'm able to check the STR, BOOL an INT.
Please, could you fix the config file parsing according the docs or add some note of config value type in docs?
regardrs
Peter
Metadata
Metadata
Assignees
Labels
No labels