mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-17 22:30:43 +08:00
optimize code struct
This commit is contained in:
@@ -11,14 +11,15 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/dns"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||
"github.com/xjasonlyu/tun2socks/core"
|
||||
"github.com/xjasonlyu/tun2socks/filter"
|
||||
"github.com/xjasonlyu/tun2socks/proxy"
|
||||
"github.com/xjasonlyu/tun2socks/tun"
|
||||
|
||||
D "github.com/xjasonlyu/tun2socks/common/dns"
|
||||
S "github.com/xjasonlyu/tun2socks/common/stats"
|
||||
|
||||
// init logger
|
||||
_ "github.com/xjasonlyu/tun2socks/common/log/simple"
|
||||
)
|
||||
@@ -32,8 +33,8 @@ var (
|
||||
args = new(CmdArgs)
|
||||
postFlagsInitFn []func()
|
||||
|
||||
fakeDNS dns.FakeDNS
|
||||
sessionStater stats.SessionStater
|
||||
fakeDNS D.FakeDNS
|
||||
sessionStater S.SessionStater
|
||||
)
|
||||
|
||||
type CmdArgs struct {
|
||||
|
Reference in New Issue
Block a user