mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-12-05 00:34:08 +00:00
check if addressbook is enabled
This commit is contained in:
1 parent
78ec5b2c6e
commit
3d0a1afd64
3 files changed
+15
-10
No files matched your search
@@ -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