mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 12:17:49 +02:00
check if addressbook is enabled
This commit is contained in:
parent
78ec5b2c6e
commit
3d0a1afd64
3 changed files with 15 additions and 10 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue