Make the fwmark range configurable via NB_FWMARK_BASE

This commit is contained in:
Viktor Liu
2026-08-25 15:13:23 +02:00
parent d71f2fd822
commit bcb3740a75
5 changed files with 229 additions and 37 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ func toBytes(s string) (int64, error) {
func getFwmark() int {
if nbnet.AdvancedRouting() && runtime.GOOS == "linux" {
return nbnet.ControlPlaneMark
return int(nbnet.ControlPlaneMark)
}
return 0
}