Skip to content

config vlaue STR must be quoted #491

@hudecof

Description

@hudecof

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions