Chore: code style

This commit is contained in:
yaling888
2022-05-09 01:22:43 +08:00
parent ad1e09db55
commit 95db646b3b
6 changed files with 67 additions and 110 deletions

View File

@ -8,7 +8,6 @@ import (
"sync"
"github.com/Dreamacro/clash/adapter"
"github.com/Dreamacro/clash/adapter/outbound"
"github.com/Dreamacro/clash/adapter/outboundgroup"
"github.com/Dreamacro/clash/component/auth"
"github.com/Dreamacro/clash/component/dialer"
@ -333,8 +332,7 @@ func updateIPTables(cfg *config.Config) {
}
func updateMitm(mitm *config.Mitm) {
outbound.UpdateRewriteHosts(mitm.Hosts)
tunnel.UpdateRewrites(mitm.Rules)
tunnel.UpdateRewrites(mitm.Hosts, mitm.Rules)
}
func Shutdown() {