File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,11 @@ impl firewall::FirewallDriver for Nftables {
381
381
batch. add ( make_rule (
382
382
& chain,
383
383
vec ! [
384
- get_subnet_match( & multicast_address, "daddr" , stmt:: Operator :: NEQ ) ,
384
+ get_subnet_match(
385
+ & multicast_address,
386
+ "daddr" ,
387
+ stmt:: Operator :: NEQ ,
388
+ ) ,
385
389
stmt:: Statement :: SNAT ( Some ( stmt:: NAT {
386
390
addr: Some ( expr:: Expression :: String ( addr. to_string( ) ) ) ,
387
391
family: Some ( stmt:: NATFamily :: IP ) ,
@@ -391,11 +395,18 @@ impl firewall::FirewallDriver for Nftables {
391
395
] ,
392
396
) ) ;
393
397
} else {
394
- log:: trace!( "Outbound address {} is not IPv4, using default MASQUERADE rule" , addr) ;
398
+ log:: trace!(
399
+ "Outbound address {} is not IPv4, using default MASQUERADE rule" ,
400
+ addr
401
+ ) ;
395
402
batch. add ( make_rule (
396
403
& chain,
397
404
vec ! [
398
- get_subnet_match( & multicast_address, "daddr" , stmt:: Operator :: NEQ ) ,
405
+ get_subnet_match(
406
+ & multicast_address,
407
+ "daddr" ,
408
+ stmt:: Operator :: NEQ ,
409
+ ) ,
399
410
stmt:: Statement :: Masquerade ( None ) ,
400
411
] ,
401
412
) ) ;
Original file line number Diff line number Diff line change @@ -231,7 +231,10 @@ pub fn get_network_chains<'a>(
231
231
Some ( TeardownPolicy :: OnComplete ) ,
232
232
) ) ;
233
233
} else {
234
- log:: trace!( "Outbound address {} is not IPv4, using default MASQUERADE rule" , addr) ;
234
+ log:: trace!(
235
+ "Outbound address {} is not IPv4, using default MASQUERADE rule" ,
236
+ addr
237
+ ) ;
235
238
hashed_network_chain. build_rule ( VarkRule :: new (
236
239
format ! ( "! -d {multicast_dest} -j {MASQUERADE}" ) ,
237
240
Some ( TeardownPolicy :: OnComplete ) ,
You can’t perform that action at this time.
0 commit comments