From 19f57607a9dcd71124a103a75f60d9b3eb8ec75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Mon, 21 Sep 2026 22:56:08 +0800 Subject: [PATCH] Fix HTTP sniffer storing IP literal hosts as domain --- common/sniff/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/sniff/http.go b/common/sniff/http.go index 012f2c99..cb69574e 100644 --- a/common/sniff/http.go +++ b/common/sniff/http.go @@ -23,6 +23,6 @@ func HTTPHost(_ context.Context, metadata *adapter.InboundContext, reader io.Rea } } metadata.Protocol = C.ProtocolHTTP - metadata.Domain = M.ParseSocksaddr(request.Host).AddrString() + metadata.Domain = M.ParseSocksaddr(request.Host).Fqdn return nil }