From f0a0d5edda67fdbb2726c73c17421c21afd87981 Mon Sep 17 00:00:00 2001 From: Trekkie Coder Date: Mon, 8 Jul 2024 19:43:22 +0900 Subject: [PATCH] gh-718 Fix masquerade session inactivity timeout --- pkg/loxinet/rules.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/loxinet/rules.go b/pkg/loxinet/rules.go index 5b79f56d..d1a3e1fe 100644 --- a/pkg/loxinet/rules.go +++ b/pkg/loxinet/rules.go @@ -1906,6 +1906,7 @@ func (R *RuleH) AddFwRule(fwRule cmn.FwRuleArg, fwOptArgs cmn.FwOptArg) (int, er servArg.Sel = cmn.LbSelRr servArg.Mode = cmn.LBModeDefault servArg.Snat = true + servArg.InactiveTimeout = LbDefaultInactiveTimeout servArg.Name = fmt.Sprintf("%s:%s:%d", "snat", fwOpts.opt.snatIP, fwOpts.opt.snatPort) snatEP := []cmn.LbEndPointArg{{EpIP: fwOpts.opt.snatIP, EpPort: fwOpts.opt.snatPort}}