We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3464e73 commit 811b289Copy full SHA for 811b289
collector/lib/ExternalIPsConfig.h
@@ -1,5 +1,6 @@
1
#pragma once
2
3
+#include <assert.h>
4
#include <optional>
5
#include <ostream>
6
@@ -18,7 +19,10 @@ class ExternalIPsConfig {
18
19
};
20
21
// Are External-IPs enabled in the provided direction ?
- bool IsEnabled(Direction direction) const { return (direction & direction_enabled_) == direction; }
22
+ bool IsEnabled(Direction direction) const {
23
+ assert(direction != Direction::NONE);
24
+ return (direction & direction_enabled_) == direction;
25
+ }
26
27
// Direction in which External-IPs are enabled
28
Direction GetDirection() const { return direction_enabled_; }
0 commit comments