Add HTTP proxy support.

Add support for using a proxy for HTTP requests. Only used for external
requests, such as downloading files or talking to source sites such as
Pixiv or Twitter, not for internal requests, such as talking to IQDB or
Reportbooru.
This commit is contained in:
evazion
2021-08-28 01:17:32 -05:00
parent 349bf14764
commit bb7f24d279
5 changed files with 27 additions and 8 deletions

View File

@@ -494,6 +494,18 @@ module Danbooru
false
end
def http_proxy_host
end
def http_proxy_port
end
def http_proxy_username
end
def http_proxy_password
end
# The URL for the Reportbooru server (https://github.com/evazion/reportbooru).
# Optional. Used for tracking post views, popular searches, and missed searches.
# Set to http://localhost/mock/reportbooru to enable a fake reportbooru