chore: fix typo

This commit is contained in:
KujouRinka 2024-03-29 21:37:09 +08:00
parent b2f6dec909
commit 2232b553b3
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ func (a *OpenVpnAnalyzer) Limit() int {
} }
func (a *OpenVpnAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream { func (a *OpenVpnAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream {
return newOpenVpnTCPStream(logger) return newOpenVpnTcpStream(logger)
} }
type openVpnStream struct { type openVpnStream struct {
@ -52,7 +52,7 @@ type openVpnTcpPkt struct {
// payload []byte // payload []byte
} }
func newOpenVpnTCPStream(logger analyzer.Logger) *openVpnStream { func newOpenVpnTcpStream(logger analyzer.Logger) *openVpnStream {
s := &openVpnStream{ s := &openVpnStream{
logger: logger, logger: logger,
reqBuf: &utils.ByteBuffer{}, reqBuf: &utils.ByteBuffer{},

View File

@ -20,7 +20,7 @@ func (a *OpenVpnAnalyzer) Limit() int {
} }
func (a *OpenVpnAnalyzer) NewUDP(info analyzer.UDPInfo, logger analyzer.Logger) analyzer.UDPStream { func (a *OpenVpnAnalyzer) NewUDP(info analyzer.UDPInfo, logger analyzer.Logger) analyzer.UDPStream {
return newOpenVPNTCPStream(logger) return newOpenVPNUdpStream(logger)
} }
type openVpnStream struct { type openVpnStream struct {
@ -53,7 +53,7 @@ type openVpnUdpPkt struct {
// payload []byte // payload []byte
} }
func newOpenVPNTCPStream(logger analyzer.Logger) *openVpnStream { func newOpenVPNUdpStream(logger analyzer.Logger) *openVpnStream {
s := &openVpnStream{ s := &openVpnStream{
logger: logger, logger: logger,
pktLimit: internal.OpenVpnUdpPktDefaultLimit, pktLimit: internal.OpenVpnUdpPktDefaultLimit,