Skip to content

Commit

Permalink
fixed data race
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice3man543 committed Nov 18, 2024
1 parent c7677d7 commit e474d5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/protocols/common/contextargs/metainput.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func (metaInput *MetaInput) Unmarshal(data string) error {
}

func (metaInput *MetaInput) Clone() *MetaInput {
metaInput.mu.Lock()
defer metaInput.mu.Unlock()

input := NewMetaInput()
input.Input = metaInput.Input
input.CustomIP = metaInput.CustomIP
Expand Down

0 comments on commit e474d5c

Please sign in to comment.