mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
support multiple proxies
This commit is contained in:
parent
1f250aca80
commit
aceaa30b52
@ -49,8 +49,10 @@ HTTPBackup() {
|
|||||||
|
|
||||||
add_option
|
add_option
|
||||||
("p", "url", 0,
|
("p", "url", 0,
|
||||||
"Specifies the URL of the HTTP proxy server, if one is required.",
|
"Specifies the URL of the HTTP proxy server(s), if one is required. "
|
||||||
&HTTPBackup::dispatch_url, &_got_proxy, &_proxy);
|
"Multiple servers may be specified by separating them with semicolons; "
|
||||||
|
"they will be tried in the order listed.",
|
||||||
|
&HTTPBackup::dispatch_string, &_got_proxy, &_proxy);
|
||||||
|
|
||||||
add_option
|
add_option
|
||||||
("a", "", 0,
|
("a", "", 0,
|
||||||
@ -183,7 +185,7 @@ handle_args(ProgramBase::Args &args) {
|
|||||||
bool HTTPBackup::
|
bool HTTPBackup::
|
||||||
post_command_line() {
|
post_command_line() {
|
||||||
if (_got_proxy) {
|
if (_got_proxy) {
|
||||||
_http.set_proxy(_proxy);
|
_http.set_proxy_spec(_proxy);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_catalog_name.is_fully_qualified()) {
|
if (!_catalog_name.is_fully_qualified()) {
|
||||||
|
@ -58,7 +58,7 @@ private:
|
|||||||
void check_unique(string &filename);
|
void check_unique(string &filename);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
URLSpec _proxy;
|
string _proxy;
|
||||||
bool _got_proxy;
|
bool _got_proxy;
|
||||||
|
|
||||||
URLSpec _url;
|
URLSpec _url;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user