engine/quic_disabled.go
Rama main · réplica de lectura del repositorio original.
//go:build plan9 || solaris || openbsd
package engine
import (
"net/http"
"sync/atomic"
"github.com/sirupsen/logrus"
)
const quicEnabled = false
// ListanAndServeQUIC is just a placeholder for platforms with QUIC disabled
func (ac *Config) ListenAndServeQUIC(_ http.Handler, _ chan bool, _ *atomic.Bool) {
logrus.Error("Not serving QUIC. This Algernon executable was built without QUIC-support.")
}
// serveQUICPortSetting is a placeholder for platforms with QUIC disabled
func (ac *Config) serveQUICPortSetting(_ http.Handler, _ PortSetting) {
logrus.Error("Not serving QUIC. This Algernon executable was built without QUIC-support.")
}