Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 

25 рядки
578 B

  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build darwin dragonfly freebsd netbsd openbsd
  5. package nettest
  6. import (
  7. "runtime"
  8. )
  9. func supportsIPv6MulticastDeliveryOnLoopback() bool {
  10. switch runtime.GOOS {
  11. case "freebsd":
  12. // See http://www.freebsd.org/cgi/query-pr.cgi?pr=180065.
  13. // Even after the fix, it looks like the latest
  14. // kernels don't deliver link-local scoped multicast
  15. // packets correctly.
  16. return false
  17. default:
  18. return true
  19. }
  20. }