review feedback

This commit is contained in:
Quentin McGaw
2026-06-05 05:01:18 +00:00
parent c18c54c3b7
commit b48ba8cb0a
2 changed files with 14 additions and 2 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package iptables
import (
"context"
"errors"
"fmt"
"io"
"net/netip"
@@ -181,7 +182,7 @@ func (c *Config) AcceptOutputFromIPPortToIPPort(ctx context.Context,
protocol, intf string, source, destination netip.AddrPort, remove bool,
) error {
if source.Addr().BitLen() != destination.Addr().BitLen() {
return fmt.Errorf("source and destination address families do not match")
return errors.New("source and destination address families do not match")
}
interfaceFlag := "-o " + intf