Skip to content

Commit

Permalink
Make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
nekohasekai committed Nov 16, 2024
1 parent dc0001a commit b94bb20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template/render_inbounds.go
Original file line number Diff line number Diff line change
@@ -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,

0 comments on commit b94bb20

Please sign in to comment.