more fixes

This commit is contained in:
Quentin McGaw
2026-08-07 11:32:24 +00:00
parent 2697b4422f
commit 3d76b14224
5 changed files with 7 additions and 19 deletions
+3 -1
View File
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"net/netip"
"os"
)
type tcpFlags struct {
@@ -71,7 +72,8 @@ func (c *Config) TempDropOutputTCPRST(ctx context.Context,
src, dst netip.AddrPort, excludeMark int) (
revert func(ctx context.Context) error, err error,
) {
if !c.nftables && !c.xtMark {
_, err = os.Stat("/usr/lib/xtables/libxt_mark.so")
if err != nil && errors.Is(err, os.ErrNotExist) {
return nil, fmt.Errorf("%w", ErrMarkMatchModuleMissing)
}