diff options
author | Michael Adam <obnox@samba.org> | 2009-11-09 13:52:29 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-11-09 13:53:44 +0100 |
commit | f4f14419c4917287c21ad3d4fb73d76050019a58 (patch) | |
tree | 7bc8e1b73a4bd6d50818a449b30553b5fddf86e2 /src | |
parent | cd834de190324c1e113271d3cd7e0e6b9a63d411 (diff) | |
download | tinyproxy-f4f14419c4917287c21ad3d4fb73d76050019a58.tar.gz tinyproxy-f4f14419c4917287c21ad3d4fb73d76050019a58.zip |
conf: fix the IPV6 regex patterns
These are not matched against the beginning of a line
but somewhere in the middle (as in "listen <IPv6 address>").
Michael
Diffstat (limited to 'src')
-rw-r--r-- | src/conf.c | 34 |
1 files changed, 17 insertions, 17 deletions
@@ -53,23 +53,23 @@ #define IP "((([0-9]{1,3})\\.){3}[0-9]{1,3})" #define IPMASK "(" IP "(/[[:digit:]]+)?)" #define IPV6 "(" \ - "(^([0-9a-f]{1,4}:){1,1}(:[0-9a-f]{1,4}){1,6}$)|" \ - "(^([0-9a-f]{1,4}:){1,2}(:[0-9a-f]{1,4}){1,5}$)|" \ - "(^([0-9a-f]{1,4}:){1,3}(:[0-9a-f]{1,4}){1,4}$)|" \ - "(^([0-9a-f]{1,4}:){1,4}(:[0-9a-f]{1,4}){1,3}$)|" \ - "(^([0-9a-f]{1,4}:){1,5}(:[0-9a-f]{1,4}){1,2}$)|" \ - "(^([0-9a-f]{1,4}:){1,6}(:[0-9a-f]{1,4}){1,1}$)|" \ - "(^(([0-9a-f]{1,4}:){1,7}|:):$)|" \ - "(^:(:[0-9a-f]{1,4}){1,7}$)|" \ - "(^((([0-9a-f]{1,4}:){6})(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3})$)|" \ - "(^(([0-9a-f]{1,4}:){5}[0-9a-f]{1,4}:(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0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