Skip to content

Commit aa23418

Browse files
fix(test): Fix empty trust_ip_forward_array setting when testing
1 parent a2994c2 commit aa23418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/bouncer-instance.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function getDatabaseSettings(): array
3939
'display_errors' => !empty(get_option('crowdsec_display_errors')),
4040
// Bouncer
4141
'bouncing_level' => esc_attr(get_option('crowdsec_bouncing_level'))?:Constants::BOUNCING_LEVEL_DISABLED,
42-
'trust_ip_forward_array' => get_option('crowdsec_trust_ip_forward_array'),
42+
'trust_ip_forward_array' => get_option('crowdsec_trust_ip_forward_array')?:[],
4343
'fallback_remediation' => esc_attr(get_option('crowdsec_fallback_remediation')),
4444
// Cache settings
4545
'stream_mode' => !empty(get_option('crowdsec_stream_mode')),

0 commit comments

Comments
 (0)