Skip to content

Commit

Permalink
fixed issue gojue#492
Browse files Browse the repository at this point in the history
* init tcPacketsChan in MTCProbe of GoTLSProbe
* filled mod.name and mod.mType in probe_gotls.go::init() used for debugging

Signed-off-by: ruitianzhong <ruitian-zhong@outlook.com>
  • Loading branch information
ruitianzhong committed Feb 27, 2024
1 parent 2127596 commit ddd3033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions user/module/probe_gotls.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import (

func init() {
mod := &GoTLSProbe{}
mod.name = ModuleNameGotls
mod.mType = ProbeTypeUprobe
Register(mod)
}

Expand Down Expand Up @@ -107,6 +109,7 @@ func (g *GoTLSProbe) Init(ctx context.Context, l *log.Logger, cfg config.IConfig
g.bootTime = uint64(bootTime)

g.tcPackets = make([]*TcPacket, 0, 1024)
g.tcPacketsChan = make(chan *TcPacket, 2048)
g.tcPacketLocker = &sync.Mutex{}
g.masterKeyBuffer = bytes.NewBuffer([]byte{})
return nil
Expand Down

0 comments on commit ddd3033

Please sign in to comment.