1
0

fix: disable multithreading when realtime output is enabled

This commit is contained in:
dump_stack() 2024-10-09 09:38:05 +00:00
parent 27abdc3687
commit 9bb15afa21
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -168,6 +168,11 @@ func (cmd *PewCmd) Run(g *Globals) (err error) {
cmd.useRemote = g.Remote
cmd.remoteAddr = g.RemoteAddr
if cmd.RealtimeOutput && cmd.Threads != 1 {
log.Warn().Msg("realtime output disables multithreading")
cmd.Threads = 1
}
if cmd.useRemote {
c := client.Client{RemoteAddr: cmd.remoteAddr}
cmd.Kcfg.Kernels, err = c.Kernels()