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

Proxy addresses containing digits are not supported #4

Open
robertkg opened this issue Apr 29, 2021 · 0 comments
Open

Proxy addresses containing digits are not supported #4

robertkg opened this issue Apr 29, 2021 · 0 comments

Comments

@robertkg
Copy link

Proxy addresses containing a digit do not match the regular expression on the proxy_server property.

Example values for proxy_server that are not accepted:

  • myproxy01:80
  • proxyserver2:81

Reference: https://github.com/sathieu/puppet-winhttp_proxy/blob/master/lib/puppet/type/winhttp_proxy.rb#L25

unless value =~ /^[=a-z._-]+(:\d+)?$/
    raise ArgumentError, "proxy_server item %s is invalid. Examples: 'myproxy', 'myproxy:80', 'http=proxy.example.com'" % value
end
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

No branches or pull requests

1 participant