From 5ccc047fe47563552a5aed3099d3932ce1eb69c9 Mon Sep 17 00:00:00 2001 From: MetaCubeX Date: Mon, 2 May 2022 05:17:13 +0800 Subject: [PATCH] chore: adjust sniffer err info --- component/sniffer/dispatcher.go | 1 + component/sniffer/tls_sniffer.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/component/sniffer/dispatcher.go b/component/sniffer/dispatcher.go index 9d47d36f..5ca44f06 100644 --- a/component/sniffer/dispatcher.go +++ b/component/sniffer/dispatcher.go @@ -19,6 +19,7 @@ import ( var ( ErrorUnsupportedSniffer = errors.New("unsupported sniffer") ErrorSniffFailed = errors.New("all sniffer failed") + ErrNoClue = errors.New("not enough information for making a decision") ) var Dispatcher SnifferDispatcher diff --git a/component/sniffer/tls_sniffer.go b/component/sniffer/tls_sniffer.go index 6af0b97b..f5a8fd99 100644 --- a/component/sniffer/tls_sniffer.go +++ b/component/sniffer/tls_sniffer.go @@ -11,7 +11,6 @@ import ( var ( errNotTLS = errors.New("not TLS header") errNotClientHello = errors.New("not client hello") - ErrNoClue = errors.New("not enough information for making a decision") ) type TLSSniffer struct {