forked from mirror/serenity
Make linter happy
This commit is contained in:
parent
dc0001a63a
commit
b94bb20249
@ -54,6 +54,7 @@ func (t *Template) renderInbounds(metadata M.Metadata, options *option.Options)
|
|||||||
tunOptions.StrictRoute = true
|
tunOptions.StrictRoute = true
|
||||||
}
|
}
|
||||||
if disableRuleAction {
|
if disableRuleAction {
|
||||||
|
//nolint:staticcheck
|
||||||
tunOptions.InboundOptions = option.InboundOptions{
|
tunOptions.InboundOptions = option.InboundOptions{
|
||||||
SniffEnabled: !t.DisableSniff,
|
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,
|
SetSystemProxy: metadata.Platform == M.PlatformUnknown && disableTun && !t.DisableSystemProxy,
|
||||||
}
|
}
|
||||||
if disableRuleAction {
|
if disableRuleAction {
|
||||||
|
//nolint:staticcheck
|
||||||
mixedOptions.InboundOptions = option.InboundOptions{
|
mixedOptions.InboundOptions = option.InboundOptions{
|
||||||
SniffEnabled: !t.DisableSniff,
|
SniffEnabled: !t.DisableSniff,
|
||||||
DomainStrategy: domainStrategy,
|
DomainStrategy: domainStrategy,
|
||||||
|
Loading…
Reference in New Issue
Block a user