aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 5fffaa381..cec2cf18c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4684,6 +4684,15 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
}
}
+ else if (!fBloomFilters &&
+ (strCommand == "filterload" ||
+ strCommand == "filteradd" ||
+ strCommand == "filterclear"))
+ {
+ pfrom->CloseSocketDisconnect();
+ return error("peer %s attempted to set a bloom filter even though we do not advertise that service",
+ pfrom->addr.ToString().c_str());
+ }
else if (strCommand == "filterload")
{