Skip to content
Snippets Groups Projects
Commit f2b5e62d authored by Alex Reisner's avatar Alex Reisner
Browse files

Be more informative about proxy server format.

parent 7edc974b
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,7 @@ module Geocoder ...@@ -23,7 +23,7 @@ module Geocoder
end end
opts.on("-p <proxy>", "--proxy <proxy>", opts.on("-p <proxy>", "--proxy <proxy>",
"HTTP proxy server to use (not including 'http://')") do |proxy| "HTTP proxy server to use (user:pass@host:port)") do |proxy|
Geocoder::Configuration.http_proxy = proxy Geocoder::Configuration.http_proxy = proxy
end end
......
...@@ -15,10 +15,10 @@ module Geocoder ...@@ -15,10 +15,10 @@ module Geocoder
# use HTTPS for lookup requests? (if supported) # use HTTPS for lookup requests? (if supported)
[:use_https, false], [:use_https, false],
# HTTP proxy server (not including "http://") # HTTP proxy server (user:pass@host:port)
[:http_proxy, nil], [:http_proxy, nil],
# HTTPS proxy server (not including "https://") # HTTPS proxy server (user:pass@host:port)
[:https_proxy, nil], [:https_proxy, nil],
# API key for geocoding service # API key for geocoding service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment