* don't respond to DISCOVER requests if node has adverts turned off. (isHiddenNode())

This commit is contained in:
Scott Powell
2026-10-04 15:02:00 +11:00
parent fad0ffb7f1
commit f19733e478
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -187,6 +187,9 @@ public:
NodePrefs* getNodePrefs() {
return &_prefs;
}
bool isHiddenNode() const {
return _prefs.advert_interval == 0 && _prefs.flood_advert_interval == 0;
}
void savePrefs() override {
_cli.savePrefs(_fs);