File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -378,18 +378,18 @@ fn parse_server_config(config: &Config) -> ServerConfig {
378
378
// for a classless network block", but we only handle
379
379
// an IP address here for now.
380
380
// See: https://unbound.docs.nlnetlabs.nl/en/latest/manpages/unbound.conf.html?highlight=edns-tcp-keepalive#unbound-conf-access-control
381
- if let Some ( ( ip , action) ) =
381
+ if let Some ( ( netblock , action) ) =
382
382
v. split_once ( |c : char | c. is_whitespace ( ) )
383
383
{
384
384
match action {
385
385
"allow_cookie" => {
386
- if let Ok ( ip ) = ip . parse ( ) {
386
+ if let Ok ( netblock ) = netblock . parse ( ) {
387
387
parsed_config
388
388
. cookies
389
389
. deny_list
390
- . push ( ip ) ;
390
+ . push ( netblock ) ;
391
391
} else {
392
- eprintln ! ( "Ignoring malformed IP address '{ip }' in 'access-control' setting" ) ;
392
+ eprintln ! ( "Ignoring malformed netblock '{netblock }' in 'access-control' setting" ) ;
393
393
}
394
394
}
395
395
You can’t perform that action at this time.
0 commit comments