mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
check if addressbook is enabled
This commit is contained in:
@@ -376,7 +376,7 @@ namespace proxy {
|
||||
std::string jump;
|
||||
if (ExtractAddressHelper(m_RequestURL, jump, m_Confirm))
|
||||
{
|
||||
if (!m_Addresshelper)
|
||||
if (!m_Addresshelper || !i2p::client::context.GetAddressBook ().IsEnabled ())
|
||||
{
|
||||
LogPrint(eLogWarning, "HTTPProxy: Addresshelper request rejected");
|
||||
GenericProxyError(tr("Invalid request"), tr("Addresshelper is not supported"));
|
||||
|
||||
Reference in New Issue
Block a user