diff --git a/main.go b/main.go index bc30cea..5427fc5 100644 --- a/main.go +++ b/main.go @@ -7,7 +7,7 @@ import ( "os/signal" "syscall" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) func main() { diff --git a/middleware.go b/middleware.go index 189886d..441460c 100644 --- a/middleware.go +++ b/middleware.go @@ -3,7 +3,7 @@ package main import ( "net/http" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" ) type logHandler struct { diff --git a/server.go b/server.go index f836b8a..f65102f 100644 --- a/server.go +++ b/server.go @@ -8,7 +8,7 @@ import ( "net/url" "strconv" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" "github.com/fangdingjun/protolistener" ) diff --git a/server_https.go b/server_https.go index abd24a7..b18297d 100644 --- a/server_https.go +++ b/server_https.go @@ -4,7 +4,7 @@ import ( "io/ioutil" "net/http" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" "github.com/miekg/dns" ) diff --git a/server_tcp.go b/server_tcp.go index 02133ca..3903d14 100644 --- a/server_tcp.go +++ b/server_tcp.go @@ -3,7 +3,7 @@ package main import ( "net" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" "github.com/miekg/dns" ) diff --git a/server_udp.go b/server_udp.go index 5216d12..7531d16 100644 --- a/server_udp.go +++ b/server_udp.go @@ -3,7 +3,7 @@ package main import ( "net" - "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" "github.com/miekg/dns" ) diff --git a/upstream.go b/upstream.go index 30069d4..83c1214 100644 --- a/upstream.go +++ b/upstream.go @@ -13,7 +13,7 @@ import ( "strings" "time" - log "github.com/fangdingjun/go-log" + log "github.com/fangdingjun/go-log/v5" "github.com/miekg/dns" "golang.org/x/net/http2" )