Skip to content

Version 0.6.1 throws an error while parsing configuration file with regrex patterns. #405

Open
@bboymega

Description

@bboymega
Jan 13 12:26:32 ubuntu sniproxy[85382]: error parsing /etc/sniproxy.conf at 1932 near:
Jan 13 12:26:32 ubuntu systemd[1]: sniproxy.service: Main process exited, code=exited, status=1/FAILURE
Jan 13 12:26:32 ubuntu sniproxy[85382]: Unable to load /etc/sniproxy.conf
Jan 13 12:26:32 ubuntu sniproxy[85382]: Usage: sniproxy [-c <config>] [-f] [-n <max file descriptor limit>] [-V]
Jan 13 12:26:32 ubuntu sniproxy[85382]:  1912        234
Jan 13 12:26:32 ubuntu systemd[1]: sniproxy.service: Failed with result 'exit-code'.
Jan 13 12:26:32 ubuntu sniproxy[85382]:  1916            .*ai\.com$ *
Jan 13 12:26:32 ubuntu sniproxy[85382]:  1933            .*chatgpt\.com$ *
Jan 13 12:26:32 ubuntu sniproxy[85382]:  1955        }
Jan 13 12:26:32 ubuntu sniproxy[85382]:  1957        (null)

/etc/sniproxy.conf:

table {
    .*ai\.com$ *
    .*chatgpt\.com$ *
}

Version 0.6.1 works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions