* don't respond to DISCOVER requests if node has adverts turned off. (isHiddenNode())
This commit is contained in:
1 parent
2b5da0785b
commit
48aae4072d
2 files changed
+4
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user