mirror of
https://github.com/apernet/OpenGFW.git
synced 2024-11-13 13:59:24 +08:00
chore: fix typo
This commit is contained in:
parent
b2f6dec909
commit
2232b553b3
@ -20,7 +20,7 @@ func (a *OpenVpnAnalyzer) Limit() int {
|
||||
}
|
||||
|
||||
func (a *OpenVpnAnalyzer) NewTCP(info analyzer.TCPInfo, logger analyzer.Logger) analyzer.TCPStream {
|
||||
return newOpenVpnTCPStream(logger)
|
||||
return newOpenVpnTcpStream(logger)
|
||||
}
|
||||
|
||||
type openVpnStream struct {
|
||||
@ -52,7 +52,7 @@ type openVpnTcpPkt struct {
|
||||
// payload []byte
|
||||
}
|
||||
|
||||
func newOpenVpnTCPStream(logger analyzer.Logger) *openVpnStream {
|
||||
func newOpenVpnTcpStream(logger analyzer.Logger) *openVpnStream {
|
||||
s := &openVpnStream{
|
||||
logger: logger,
|
||||
reqBuf: &utils.ByteBuffer{},
|
||||
|
@ -20,7 +20,7 @@ func (a *OpenVpnAnalyzer) Limit() int {
|
||||
}
|
||||
|
||||
func (a *OpenVpnAnalyzer) NewUDP(info analyzer.UDPInfo, logger analyzer.Logger) analyzer.UDPStream {
|
||||
return newOpenVPNTCPStream(logger)
|
||||
return newOpenVPNUdpStream(logger)
|
||||
}
|
||||
|
||||
type openVpnStream struct {
|
||||
@ -53,7 +53,7 @@ type openVpnUdpPkt struct {
|
||||
// payload []byte
|
||||
}
|
||||
|
||||
func newOpenVPNTCPStream(logger analyzer.Logger) *openVpnStream {
|
||||
func newOpenVPNUdpStream(logger analyzer.Logger) *openVpnStream {
|
||||
s := &openVpnStream{
|
||||
logger: logger,
|
||||
pktLimit: internal.OpenVpnUdpPktDefaultLimit,
|
||||
|
Loading…
Reference in New Issue
Block a user