From b94bb20249a2f9857a1b297665db371aec0284f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 16 Nov 2024 20:26:58 +0800 Subject: [PATCH] Make linter happy --- template/render_inbounds.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/render_inbounds.go b/template/render_inbounds.go index 25671d3..237d8c3 100644 --- a/template/render_inbounds.go +++ b/template/render_inbounds.go @@ -54,6 +54,7 @@ func (t *Template) renderInbounds(metadata M.Metadata, options *option.Options) tunOptions.StrictRoute = true } if disableRuleAction { + //nolint:staticcheck tunOptions.InboundOptions = option.InboundOptions{ SniffEnabled: !t.DisableSniff, } @@ -97,6 +98,7 @@ func (t *Template) renderInbounds(metadata M.Metadata, options *option.Options) SetSystemProxy: metadata.Platform == M.PlatformUnknown && disableTun && !t.DisableSystemProxy, } if disableRuleAction { + //nolint:staticcheck mixedOptions.InboundOptions = option.InboundOptions{ SniffEnabled: !t.DisableSniff, DomainStrategy: domainStrategy,