Open mss opened 2 years ago
tinyproxy/1.11.0-rc1-47-git-7f13fa8
The default config file contains these examples:
# upstream none "10.0.0.0/8" # upstream none "192.168.0.0/255.255.254.0"
So I assumed the prefix notation would work for IPv6 as well. And I tried:
Upstream http 127.0.0.1:8080 "::1/128" Upstream http 127.0.0.1:8080 "2a01:c22:8ce0:fff::/64"
And neither worked when tested with curl, eg.
curl -s -v -I 'http://[::1]' >/dev/null
The parser definition is conf.c is
conf.c
STDCONF (upstream, "(" "(none)" WS STR ")|" \ "(" "(http|socks4|socks5)" WS \ "(" USERNAME /*username*/ ":" PASSWORD /*password*/ "@" ")?" "(" IP "|" ALNUM ")" ":" INT "(" WS STR ")?" ")", handle_upstream),
It should probably use the "(" IPMASK "|" IPV6MASK ")" (plus | ALNUM) as used in the allow/deny rules.
"(" IPMASK "|" IPV6MASK ")"
| ALNUM
allow
deny
Have you solved this trouble?
Tinyproxy version
tinyproxy/1.11.0-rc1-47-git-7f13fa8
Issue
The default config file contains these examples:
So I assumed the prefix notation would work for IPv6 as well. And I tried:
And neither worked when tested with curl, eg.
The parser definition is
conf.c
isIt should probably use the
"(" IPMASK "|" IPV6MASK ")"
(plus| ALNUM
) as used in theallow
/deny
rules.