mirror of
https://github.com/bettercap/bettercap
synced 2025-07-06 21:12:05 -07:00
fix: fixed a deadlock in tcp_proxy_script (fixes #411)
This commit is contained in:
parent
0c50012f9b
commit
f687c9bb76
1 changed files with 0 additions and 3 deletions
|
@ -48,9 +48,6 @@ func LoadTcpProxyScript(path string, sess *session.Session) (err error, s *TcpPr
|
|||
|
||||
func (s *TcpProxyScript) OnData(from, to net.Addr, data []byte) []byte {
|
||||
if s.doOnData {
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
|
||||
addrFrom := strings.Split(from.String(), ":")[0]
|
||||
addrTo := strings.Split(to.String(), ":")[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue