tun2: no connections means no connections
This commit is contained in:
parent
2f08c381e7
commit
aa16ea5e26
|
@ -365,7 +365,7 @@ func (s *Server) RoundTrip(req *http.Request) (*http.Response, error) {
|
|||
val, ok := s.domains.Get(req.Host)
|
||||
if ok {
|
||||
conns, ok = val.([]*Connection)
|
||||
if !ok {
|
||||
if !ok || len(conns) == 0 {
|
||||
ln.Error(errors.New("no backend connected"), ln.F{
|
||||
"action": "no_backend_connected",
|
||||
"remote": req.RemoteAddr,
|
||||
|
|
Loading…
Reference in New Issue