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"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
|
||||||
"github.com/xjasonlyu/tun2socks/core"
|
"github.com/xjasonlyu/tun2socks/core"
|
||||||
"github.com/xjasonlyu/tun2socks/filter"
|
"github.com/xjasonlyu/tun2socks/filter"
|
||||||
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
"github.com/xjasonlyu/tun2socks/proxy"
|
"github.com/xjasonlyu/tun2socks/proxy"
|
||||||
"github.com/xjasonlyu/tun2socks/tun"
|
"github.com/xjasonlyu/tun2socks/tun"
|
||||||
|
|
||||||
D "github.com/xjasonlyu/tun2socks/common/dns"
|
D "github.com/xjasonlyu/tun2socks/common/dns"
|
||||||
S "github.com/xjasonlyu/tun2socks/common/stats"
|
S "github.com/xjasonlyu/tun2socks/common/stats"
|
||||||
C "github.com/xjasonlyu/tun2socks/constant"
|
C "github.com/xjasonlyu/tun2socks/constant"
|
||||||
|
|
||||||
// init logger
|
|
||||||
_ "github.com/xjasonlyu/tun2socks/common/log/simple"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const MTU = 1500
|
const MTU = 1500
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
"flag"
|
"flag"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/dns/fakedns"
|
"github.com/xjasonlyu/tun2socks/common/dns/fakedns"
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@@ -6,7 +6,7 @@ import (
|
|||||||
|
|
||||||
D "github.com/miekg/dns"
|
D "github.com/miekg/dns"
|
||||||
"github.com/xjasonlyu/tun2socks/common/fakeip"
|
"github.com/xjasonlyu/tun2socks/common/fakeip"
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/queue"
|
"github.com/xjasonlyu/tun2socks/common/queue"
|
||||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||||
C "github.com/xjasonlyu/tun2socks/constant"
|
C "github.com/xjasonlyu/tun2socks/constant"
|
||||||
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
const maxCompletedSessions = 100
|
const maxCompletedSessions = 100
|
||||||
|
@@ -3,8 +3,8 @@ package filter
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/packet"
|
"github.com/xjasonlyu/tun2socks/common/packet"
|
||||||
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type icmpFilter struct {
|
type icmpFilter struct {
|
||||||
|
@@ -8,11 +8,11 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/dns"
|
"github.com/xjasonlyu/tun2socks/common/dns"
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/lsof"
|
"github.com/xjasonlyu/tun2socks/common/lsof"
|
||||||
"github.com/xjasonlyu/tun2socks/common/pool"
|
"github.com/xjasonlyu/tun2socks/common/pool"
|
||||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||||
"github.com/xjasonlyu/tun2socks/core"
|
"github.com/xjasonlyu/tun2socks/core"
|
||||||
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type tcpHandler struct {
|
type tcpHandler struct {
|
||||||
|
@@ -8,11 +8,11 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/dns"
|
"github.com/xjasonlyu/tun2socks/common/dns"
|
||||||
"github.com/xjasonlyu/tun2socks/common/log"
|
|
||||||
"github.com/xjasonlyu/tun2socks/common/lsof"
|
"github.com/xjasonlyu/tun2socks/common/lsof"
|
||||||
"github.com/xjasonlyu/tun2socks/common/pool"
|
"github.com/xjasonlyu/tun2socks/common/pool"
|
||||||
"github.com/xjasonlyu/tun2socks/common/stats"
|
"github.com/xjasonlyu/tun2socks/common/stats"
|
||||||
"github.com/xjasonlyu/tun2socks/core"
|
"github.com/xjasonlyu/tun2socks/core"
|
||||||
|
"github.com/xjasonlyu/tun2socks/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
type udpHandler struct {
|
type udpHandler struct {
|
||||||
|
Reference in New Issue
Block a user