mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-19 15:54:24 +00:00
Fix HTTP sniffer storing IP literal hosts as domain
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user