mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-16 22:00:42 +08:00
update log
This commit is contained in:
@@ -12,18 +12,15 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/core"
|
||||
"github.com/xjasonlyu/tun2socks/filter"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
"github.com/xjasonlyu/tun2socks/proxy"
|
||||
"github.com/xjasonlyu/tun2socks/tun"
|
||||
|
||||
D "github.com/xjasonlyu/tun2socks/common/dns"
|
||||
S "github.com/xjasonlyu/tun2socks/common/stats"
|
||||
C "github.com/xjasonlyu/tun2socks/constant"
|
||||
|
||||
// init logger
|
||||
_ "github.com/xjasonlyu/tun2socks/common/log/simple"
|
||||
)
|
||||
|
||||
const MTU = 1500
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"flag"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/dns/fakedns"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
D "github.com/miekg/dns"
|
||||
"github.com/xjasonlyu/tun2socks/common/fakeip"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@@ -9,10 +9,10 @@ import (
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/common/queue"
|
||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||
C "github.com/xjasonlyu/tun2socks/constant"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
const maxCompletedSessions = 100
|
||||
|
@@ -3,8 +3,8 @@ package filter
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/common/packet"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
type icmpFilter struct {
|
||||
|
@@ -8,11 +8,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/dns"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/common/lsof"
|
||||
"github.com/xjasonlyu/tun2socks/common/pool"
|
||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||
"github.com/xjasonlyu/tun2socks/core"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
type tcpHandler struct {
|
||||
|
@@ -8,11 +8,11 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/xjasonlyu/tun2socks/common/dns"
|
||||
"github.com/xjasonlyu/tun2socks/common/log"
|
||||
"github.com/xjasonlyu/tun2socks/common/lsof"
|
||||
"github.com/xjasonlyu/tun2socks/common/pool"
|
||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||
"github.com/xjasonlyu/tun2socks/core"
|
||||
"github.com/xjasonlyu/tun2socks/log"
|
||||
)
|
||||
|
||||
type udpHandler struct {
|
||||
|
Reference in New Issue
Block a user