mirror of
https://github.com/apernet/OpenGFW.git
synced 2024-12-23 01:19:21 +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 {
|
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{},
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user