mirror of
https://github.com/caddyserver/caddy.git
synced 2025-07-08 10:44:46 -04:00
fix if check
This commit is contained in:
parent
337fc17423
commit
4c1922448b
@ -40,7 +40,7 @@ func (h *http2Listener) Accept() (net.Conn, error) {
|
|||||||
// emit a warning
|
// emit a warning
|
||||||
if h.useTLS && !isConnectionStater {
|
if h.useTLS && !isConnectionStater {
|
||||||
h.logger.Warn("tls is enabled, but listener wrapper returns a connection that doesn't implement connectionStater")
|
h.logger.Warn("tls is enabled, but listener wrapper returns a connection that doesn't implement connectionStater")
|
||||||
} else if isConnectionStater {
|
} else if !h.useTLS && isConnectionStater {
|
||||||
h.logger.Warn("tls is disabled, but listener wrapper returns a connection that implements connectionStater")
|
h.logger.Warn("tls is disabled, but listener wrapper returns a connection that implements connectionStater")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user