sunzhenguo / pacparser

Automatically exported from code.google.com/p/pacparser
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Raw IPv6 addresses parsed incorrectly #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example (with vanilla pactester 1.2.9):

# DEBUG=1 ./pactester -e -p proxy.pac -u http://[2001:67c:168:170::10]/ 
...
DEBUG: Finding proxy for URL: http://[2001:67c:168:170::10]/ and Host: [2001

Host ist parsed as '[2001'

With the patch:

# DEBUG=1 ./pactester -e -p proxy.pac -u http://[2001:67c:168:170::10]/ 
...
DEBUG: Finding proxy for URL: http://[2001:67c:168:170::10]/ and Host: 
[2001:67c:168:170::10]

Actually, I don't know if the brackets have to be stripped before
being evaluated in FindProxyForURL.

Original issue reported on code.google.com by jmber...@gmail.com on 12 Sep 2011 at 9:15

Attachments: