Add build tag "no_libnftables"

With this tag, a dynamically linked binary will exec
the nft tool instead of using cgo to call libnftables
directly.

Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
Rob Murray
2025-09-26 13:33:40 +00:00
parent 6db6de2c20
commit 38fb0dd10c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
//go:build cgo && !static_build
//go:build cgo && !static_build && !no_libnftables
package nftables

View File

@@ -1,4 +1,4 @@
//go:build !cgo || static_build
//go:build !cgo || static_build || no_libnftables
package nftables