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

This commit is contained in:
Scott Powell committed 2026-10-04 15:02:00 +11:00
1 parent 2b5da0785b
commit 48aae4072d
2 files changed
+4

No files matched your search

+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);