Merge branch 'dev' into feature/detailed-errors-to-client

# Conflicts:
#	models/config/server_common.go
This commit is contained in:
Guy Lewin
2020-02-11 11:25:04 +02:00
5 changed files with 111 additions and 2 deletions

View File

@@ -284,7 +284,7 @@ func (svr *Service) HandleListener(l net.Listener) {
log.Trace("start check TLS connection...")
originConn := c
c, err = frpNet.CheckAndEnableTLSServerConnWithTimeout(c, svr.tlsConfig, connReadTimeout)
c, err = frpNet.CheckAndEnableTLSServerConnWithTimeout(c, svr.tlsConfig, svr.cfg.TlsOnly, connReadTimeout)
if err != nil {
log.Warn("CheckAndEnableTLSServerConnWithTimeout error: %v", err)
originConn.Close()