Skip to content

Commit 484bc41

Browse files
authored
flow filtering default settings for cidr and action (#357)
Signed-off-by: Mohamed Mahmoud <[email protected]>
1 parent 8a6d8ce commit 484bc41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/agent/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ type Config struct {
186186
FilterDirection string `env:"FILTER_DIRECTION"`
187187
// FilterIPCIDR is the IP CIDR to filter flows.
188188
// Example: 10.10.10.0/24 or 100:100:100:100::/64
189-
FilterIPCIDR string `env:"FILTER_IP_CIDR"`
189+
FilterIPCIDR string `env:"FILTER_IP_CIDR" envDefault:"0.0.0.0/0"`
190190
// FilterProtocol is the protocol to filter flows.
191191
// Example: TCP, UDP, SCTP, ICMP, ICMPv6
192192
FilterProtocol string `env:"FILTER_PROTOCOL"`
@@ -214,7 +214,7 @@ type Config struct {
214214
FilterPeerIP string `env:"FILTER_PEER_IP"`
215215
// FilterAction is the action to filter flows.
216216
// Possible values are "Accept" or "Reject".
217-
FilterAction string `env:"FILTER_ACTION"`
217+
FilterAction string `env:"FILTER_ACTION" envDefault:"Accept"`
218218

219219
/* Deprecated configs are listed below this line
220220
* See manageDeprecatedConfigs function for details

0 commit comments

Comments
 (0)