1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00

Merge pull request #494 from chavacava/fix-493

fix #493: data race in cli.relay
This commit is contained in:
Zack 2022-08-05 08:38:07 -07:00 committed by GitHub
commit 69f939c0cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -470,7 +470,7 @@ func relay(c *cli.Context) (err error) {
continue
}
go func(portStr string) {
err = tcp.Run(debugString, host, portStr, determinePass(c))
err := tcp.Run(debugString, host, portStr, determinePass(c))
if err != nil {
panic(err)
}