check if addressbook is enabled

This commit is contained in:
orignal 2024-09-11 12:06:55 -04:00
parent 78ec5b2c6e
commit 3d0a1afd64
3 changed files with 15 additions and 10 deletions

View file

@ -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"));