diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-13 23:06:24 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-13 23:06:24 +0900 |
| commit | 97a9242cbe618ac3c2e3e89c30ee8018268e35a3 (patch) | |
| tree | 59f54d46282273e7986a3055b31c49e1514dbff5 /src/AbstractCommand.h | |
| parent | c42dd7e75539754f34269c46ad7673881ddbbf0d (diff) | |
Proxy URI is now constructed in getProxyUri().
The previous implementation constructs proxy URI in OptionHandler but
it cannot handle with the situation when user, password and proxy URI
is given various order. Now we just set rules: username set in
--*-proxy-user overrides username in --*-proxy option, no matter in
any order username, password and proxy URI are parsed. Likewise,
password set in --*--proxy-passwd overrides password in --*-proxy
option.
Diffstat (limited to 'src/AbstractCommand.h')
| -rw-r--r-- | src/AbstractCommand.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/AbstractCommand.h b/src/AbstractCommand.h index 8d9fbf08..ed5165f1 100644 --- a/src/AbstractCommand.h +++ b/src/AbstractCommand.h @@ -243,6 +243,11 @@ public: bool execute(); }; +// Returns proxy URI for given protocol. If no proxy URI is defined, +// then returns an empty string. +std::string getProxyUri +(const std::string& protocol, const Option* option); + } // namespace aria2 #endif // D_ABSTRACT_COMMAND_H |
