From 398375d76f5fff6992224671166d785146028d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Tue, 24 May 2022 06:57:16 +0800 Subject: [PATCH] Reformat code (quic sniffers) --- app/dispatcher/sniffer.go | 4 ++-- common/protocol/bittorrent/bittorrent.go | 2 +- common/protocol/quic/sniff.go | 3 +-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/dispatcher/sniffer.go b/app/dispatcher/sniffer.go index f85a715f..e23277a7 100644 --- a/app/dispatcher/sniffer.go +++ b/app/dispatcher/sniffer.go @@ -2,12 +2,12 @@ package dispatcher import ( "context" - "github.com/xtls/xray-core/common/net" - "github.com/xtls/xray-core/common/protocol/quic" "github.com/xtls/xray-core/common" + "github.com/xtls/xray-core/common/net" "github.com/xtls/xray-core/common/protocol/bittorrent" "github.com/xtls/xray-core/common/protocol/http" + "github.com/xtls/xray-core/common/protocol/quic" "github.com/xtls/xray-core/common/protocol/tls" ) diff --git a/common/protocol/bittorrent/bittorrent.go b/common/protocol/bittorrent/bittorrent.go index 43cb5f82..70830764 100644 --- a/common/protocol/bittorrent/bittorrent.go +++ b/common/protocol/bittorrent/bittorrent.go @@ -6,8 +6,8 @@ import ( "math" "time" - "github.com/xtls/xray-core/common/buf" "github.com/xtls/xray-core/common" + "github.com/xtls/xray-core/common/buf" ) type SniffHeader struct{} diff --git a/common/protocol/quic/sniff.go b/common/protocol/quic/sniff.go index 9ff002c2..0065742c 100644 --- a/common/protocol/quic/sniff.go +++ b/common/protocol/quic/sniff.go @@ -8,12 +8,11 @@ import ( "io" "github.com/lucas-clemente/quic-go/quicvarint" - "golang.org/x/crypto/hkdf" - "github.com/xtls/xray-core/common" "github.com/xtls/xray-core/common/buf" "github.com/xtls/xray-core/common/errors" ptls "github.com/xtls/xray-core/common/protocol/tls" + "golang.org/x/crypto/hkdf" ) type SniffHeader struct {