mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-20 04:02:15 +02:00
Fixed issue with NTLM auth where exceptions thrown in NTLM
implementation were interpreted as PROXY_ERROR. This causes issues when Remember Creds checkbox is checked. It's better to treat such exceptions as PROXY_NEED_CREDS.
This commit is contained in:
parent
b16f8acc34
commit
4595ae0922
@ -206,7 +206,7 @@ namespace openvpn {
|
||||
parent.transport_error(Error::UNDEF, os.str());
|
||||
}
|
||||
|
||||
void proxy_error(const Error::Type fatal_err, const char *what)
|
||||
void proxy_error(const Error::Type fatal_err, const std::string& what)
|
||||
{
|
||||
std::ostringstream os;
|
||||
os << "on " << config->http_proxy_options->host << ':' << config->http_proxy_options->port << ": " << what;
|
||||
@ -451,7 +451,7 @@ namespace openvpn {
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
throw Exception(std::string("Digest Auth: ") + e.what());
|
||||
proxy_error(Error::PROXY_NEED_CREDS, std::string("Digest Auth: ") + e.what());
|
||||
}
|
||||
}
|
||||
|
||||
@ -529,7 +529,7 @@ namespace openvpn {
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
throw Exception(std::string("NTLM Auth: ") + e.what());
|
||||
proxy_error(Error::PROXY_NEED_CREDS, std::string("NTLM Auth: ") + e.what());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user