human review!

This commit is contained in:
Quentin McGaw
2026-08-06 20:08:38 +00:00
parent 0f337b4277
commit c513b8fbd2
6 changed files with 73 additions and 164 deletions
+2 -1
View File
@@ -41,8 +41,9 @@ func NewConfig(ctx context.Context, implementation string, logger Logger,
) (config *Config, err error) {
var impl firewallImpl
var customRulesPath string
// TODO after v3.42 release, use nftables if [nftables.IsSupported] is true.
switch implementation {
case "iptables":
case "auto", "iptables":
impl, err = iptables.New(ctx, runner, logger)
if err != nil {
return nil, fmt.Errorf("creating iptables firewall: %w", err)