mirror of
https://github.com/qdm12/gluetun.git
synced 2026-07-10 12:39:52 +02:00
Compare commits
2 Commits
6dba7ce312
...
4da8162020
| Author | SHA1 | Date | |
|---|---|---|---|
| 4da8162020 | |||
| df846c57db |
@@ -97,6 +97,7 @@ func (s *server) runServer(ready chan<- struct{},
|
||||
return
|
||||
}
|
||||
wg.Go(func() {
|
||||
connection := connection // capture loop variable
|
||||
socksConn := &socksConn{
|
||||
dialer: dialer,
|
||||
username: s.username,
|
||||
@@ -115,6 +116,7 @@ func (s *server) runServer(ready chan<- struct{},
|
||||
|
||||
select {
|
||||
case <-stop:
|
||||
s.listening.Store(false)
|
||||
var errs []error
|
||||
err := s.tcpListener.Close()
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user