quic_disabled.go 440 B

123456789101112131415161718
  1. //go:build plan9 || solaris || openbsd
  2. // +build plan9 solaris openbsd
  3. package engine
  4. import (
  5. "net/http"
  6. "sync"
  7. log "github.com/sirupsen/logrus"
  8. )
  9. var quicEnabled = false
  10. // ListanAndServeQUIC is just a placeholder for platforms with QUIC disabled
  11. func (ac *Config) ListenAndServeQUIC(_ http.Handler, _ *sync.Mutex, _ chan bool, _ *bool) {
  12. log.Error("Not serving QUIC. This Algernon executable was built without QUIC-support.")
  13. }