quic_unsupported.go 497 B

1234567891011121314151617
  1. // Copyright (C) 2020 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at http://mozilla.org/MPL/2.0/.
  6. // +build noquic !go1.14 go1.16
  7. package connections
  8. func init() {
  9. for _, scheme := range []string{"quic", "quic4", "quic6"} {
  10. listeners[scheme] = invalidListener{err: errNotInBuild}
  11. dialers[scheme] = invalidDialer{err: errNotInBuild}
  12. }
  13. }