Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow IPv6 proxy hosts starting with [. #306

Merged
merged 1 commit into from
Mar 6, 2019
Merged

Allow IPv6 proxy hosts starting with [. #306

merged 1 commit into from
Mar 6, 2019

Conversation

genio
Copy link
Member

@genio genio commented Mar 4, 2019

Altered the regular expression that checked for a sane-ish looking
URL for our proxy host:

if $url =~ /^https?:/ && $url !~ m,^https?://\w,;

Given this expression, a proxy host in the form of
http://[::1]:33485/ would fail because it starts with a left bracket.

The expression above has been altered to:

if $url =~ /^https?:/ && $url !~ m,^https?://[\w[],;

Which will allow it to begin with a word character or a left bracket.

This will resolve issue #237

@coveralls
Copy link

coveralls commented Mar 4, 2019

Coverage Status

Coverage remained the same at 60.411% when pulling 9889d18 on proxy-ipv6 into 04c14ca on master.

Altered the regular expression that checked for a sane-ish looking
URL for our proxy host:

 if $url =~ /^https?:/ && $url !~ m,^https?://\w,;

Given this expression, a proxy host in the form of
http://[::1]:33485/ would fail because it starts with a left bracket.

The expression above has been altered to:

 if $url =~ /^https?:/ && $url !~ m,^https?://[\w[],;

Which will allow it to begin with a word character or a left bracket.

This will resolve issue #237

Also, edit the Travis config to ensure we test against threaded Perls.
@oalders oalders merged commit 130b83d into master Mar 6, 2019
@oalders oalders deleted the proxy-ipv6 branch March 6, 2019 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants