mirror of
https://github.com/whyvl/wireproxy.git
synced 2025-04-29 19:01:42 +02:00
fix blocking routine
This commit is contained in:
parent
9935eb6f60
commit
65b91aec83
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -347,6 +347,8 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, netRoutine := range routines {
|
for _, netRoutine := range routines {
|
||||||
netRoutine(tnet)
|
go netRoutine(tnet)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
select{} // sleep etnerally
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue