fix(firewall): query iptables version for iptables found

This commit is contained in:
Quentin McGaw
2024-05-04 16:19:30 +00:00
parent 29bc60bc35
commit ef6874fe57
2 changed files with 4 additions and 7 deletions

View File

@@ -279,9 +279,7 @@ func _main(ctx context.Context, buildInfo models.BuildInformation,
{name: "OpenVPN 2.5", getVersion: ovpnConf.Version25},
{name: "OpenVPN 2.6", getVersion: ovpnConf.Version26},
{name: "Unbound", getVersion: dnsConf.Version},
{name: "IPtables", getVersion: func(ctx context.Context) (version string, err error) {
return firewall.Version(ctx, cmder)
}},
{name: "IPtables", getVersion: firewallConf.Version},
})
if err != nil {
return err