Make linter happy

This commit is contained in:
世界 2024-11-16 20:26:58 +08:00
parent dc0001a63a
commit b94bb20249
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -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,