2020-02-25 22:05:17 +00:00
|
|
|
// Copyright (c) 2020 Tailscale Inc & AUTHORS All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// Package netcheck checks the network conditions from the current host.
|
|
|
|
package netcheck
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-03-09 22:20:33 +00:00
|
|
|
"errors"
|
2020-03-04 21:40:29 +00:00
|
|
|
"fmt"
|
2020-02-25 22:05:17 +00:00
|
|
|
"io"
|
2020-03-09 22:20:33 +00:00
|
|
|
"log"
|
2020-02-25 22:05:17 +00:00
|
|
|
"net"
|
|
|
|
"sync"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"golang.org/x/sync/errgroup"
|
2020-03-09 22:20:33 +00:00
|
|
|
"tailscale.com/derp/derpmap"
|
2020-03-05 18:29:19 +00:00
|
|
|
"tailscale.com/net/dnscache"
|
2020-03-10 18:02:30 +00:00
|
|
|
"tailscale.com/net/interfaces"
|
2020-02-28 22:14:02 +00:00
|
|
|
"tailscale.com/stun"
|
2020-02-25 22:05:17 +00:00
|
|
|
"tailscale.com/stunner"
|
|
|
|
"tailscale.com/types/logger"
|
|
|
|
"tailscale.com/types/opt"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Report struct {
|
|
|
|
UDP bool // UDP works
|
|
|
|
IPv6 bool // IPv6 works
|
|
|
|
MappingVariesByDestIP opt.Bool // for IPv4
|
2020-02-28 22:14:02 +00:00
|
|
|
HairPinning opt.Bool // for IPv4
|
2020-03-04 06:21:56 +00:00
|
|
|
PreferredDERP int // or 0 for unknown
|
2020-02-25 22:05:17 +00:00
|
|
|
DERPLatency map[string]time.Duration // keyed by STUN host:port
|
2020-03-02 23:02:34 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
GlobalV4 string // ip:port of global IPv4
|
|
|
|
GlobalV6 string // [ip]:port of global IPv6 // TODO
|
|
|
|
|
2020-03-02 23:02:34 +00:00
|
|
|
// TODO: update Clone when adding new fields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *Report) Clone() *Report {
|
|
|
|
if r == nil {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
r2 := *r
|
|
|
|
if r2.DERPLatency != nil {
|
|
|
|
r2.DERPLatency = map[string]time.Duration{}
|
|
|
|
for k, v := range r.DERPLatency {
|
|
|
|
r2.DERPLatency[k] = v
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return &r2
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
// Client generates a netcheck Report.
|
|
|
|
type Client struct {
|
|
|
|
// DERP is the DERP world to use.
|
|
|
|
DERP *derpmap.World
|
|
|
|
|
|
|
|
// DNSCache optionally specifies a DNSCache to use.
|
|
|
|
// If nil, a DNS cache is not used.
|
|
|
|
DNSCache *dnscache.Resolver
|
|
|
|
|
|
|
|
// Logf optionally specifies where to log to.
|
|
|
|
Logf logger.Logf
|
|
|
|
|
|
|
|
GetSTUNConn4 func() STUNConn
|
|
|
|
GetSTUNConn6 func() STUNConn
|
2020-03-04 21:40:29 +00:00
|
|
|
|
2020-03-11 22:35:12 +00:00
|
|
|
mu sync.Mutex // guards following
|
2020-03-11 04:30:04 +00:00
|
|
|
s4 *stunner.Stunner
|
|
|
|
s6 *stunner.Stunner
|
|
|
|
hairTX stun.TxID
|
2020-03-11 22:35:12 +00:00
|
|
|
gotHairSTUN chan *net.UDPAddr // non-nil if we're in GetReport
|
2020-03-04 21:40:29 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
// STUNConn is the interface required by the netcheck Client when
|
|
|
|
// reusing an existing UDP connection.
|
|
|
|
type STUNConn interface {
|
|
|
|
WriteTo([]byte, net.Addr) (int, error)
|
|
|
|
ReadFrom([]byte) (int, net.Addr, error)
|
|
|
|
}
|
2020-03-04 21:40:29 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
func (c *Client) logf(format string, a ...interface{}) {
|
|
|
|
if c.Logf != nil {
|
|
|
|
c.Logf(format, a...)
|
|
|
|
} else {
|
|
|
|
log.Printf(format, a...)
|
|
|
|
}
|
|
|
|
}
|
2020-03-04 21:40:29 +00:00
|
|
|
|
2020-03-11 04:30:04 +00:00
|
|
|
// handleHairSTUN reports whether pkt (from src) was our magic hairpin
|
|
|
|
// probe packet that we sent to ourselves.
|
|
|
|
func (c *Client) handleHairSTUN(pkt []byte, src *net.UDPAddr) bool {
|
2020-03-11 22:35:12 +00:00
|
|
|
c.mu.Lock()
|
|
|
|
defer c.mu.Unlock()
|
|
|
|
return c.handleHairSTUNLocked(pkt, src)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *Client) handleHairSTUNLocked(pkt []byte, src *net.UDPAddr) bool {
|
2020-03-11 04:30:04 +00:00
|
|
|
if tx, err := stun.ParseBindingRequest(pkt); err == nil && tx == c.hairTX {
|
|
|
|
select {
|
|
|
|
case c.gotHairSTUN <- src:
|
|
|
|
default:
|
|
|
|
}
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
return false
|
|
|
|
}
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
func (c *Client) ReceiveSTUNPacket(pkt []byte, src *net.UDPAddr) {
|
|
|
|
if src == nil || src.IP == nil {
|
|
|
|
panic("bogus src")
|
|
|
|
}
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
c.mu.Lock()
|
|
|
|
|
|
|
|
if c.handleHairSTUNLocked(pkt, src) {
|
|
|
|
c.mu.Unlock()
|
2020-03-11 04:30:04 +00:00
|
|
|
return
|
|
|
|
}
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
var st *stunner.Stunner
|
2020-03-09 22:20:33 +00:00
|
|
|
if src.IP.To4() != nil {
|
|
|
|
st = c.s4
|
|
|
|
} else {
|
|
|
|
st = c.s6
|
2020-03-04 21:40:29 +00:00
|
|
|
}
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
c.mu.Unlock()
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
if st != nil {
|
|
|
|
st.Receive(pkt, src)
|
|
|
|
}
|
|
|
|
}
|
2020-03-04 21:40:29 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
// GetReport gets a report.
|
|
|
|
//
|
|
|
|
// It may not be called concurrently with itself.
|
|
|
|
func (c *Client) GetReport(ctx context.Context) (*Report, error) {
|
2020-02-28 22:14:02 +00:00
|
|
|
// Mask user context with ours that we guarantee to cancel so
|
|
|
|
// we can depend on it being closed in goroutines later.
|
|
|
|
// (User ctx might be context.Background, etc)
|
2020-03-12 21:14:48 +00:00
|
|
|
ctx, cancel := context.WithTimeout(ctx, 3*time.Second)
|
2020-02-28 22:14:02 +00:00
|
|
|
defer cancel()
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
if c.DERP == nil {
|
|
|
|
return nil, errors.New("netcheck: GetReport: Client.DERP is nil")
|
|
|
|
}
|
|
|
|
|
|
|
|
c.mu.Lock()
|
|
|
|
if c.gotHairSTUN != nil {
|
|
|
|
c.mu.Unlock()
|
|
|
|
return nil, errors.New("invalid concurrent call to GetReport")
|
|
|
|
}
|
|
|
|
hairTX := stun.NewTxID() // random payload
|
|
|
|
c.hairTX = hairTX
|
|
|
|
gotHairSTUN := make(chan *net.UDPAddr, 1)
|
|
|
|
c.gotHairSTUN = gotHairSTUN
|
|
|
|
c.mu.Unlock()
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
defer func() {
|
2020-03-11 22:35:12 +00:00
|
|
|
c.mu.Lock()
|
|
|
|
defer c.mu.Unlock()
|
2020-03-09 22:20:33 +00:00
|
|
|
c.s4 = nil
|
|
|
|
c.s6 = nil
|
2020-03-11 22:35:12 +00:00
|
|
|
c.gotHairSTUN = nil
|
2020-03-09 22:20:33 +00:00
|
|
|
}()
|
|
|
|
|
|
|
|
stuns4 := c.DERP.STUN4()
|
|
|
|
stuns6 := c.DERP.STUN6()
|
|
|
|
if len(stuns4) == 0 {
|
|
|
|
// TODO: make this work? if we ever need it
|
|
|
|
// to. Requirement for self-hosted Tailscale might be
|
|
|
|
// to run a DERP+STUN server co-resident with the
|
|
|
|
// Control server.
|
|
|
|
return nil, errors.New("netcheck: GetReport: no STUN servers, no Report")
|
|
|
|
}
|
|
|
|
for _, s := range stuns4 {
|
|
|
|
if _, _, err := net.SplitHostPort(s); err != nil {
|
|
|
|
return nil, fmt.Errorf("netcheck: GetReport: bogus STUN4 server %q", s)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
for _, s := range stuns6 {
|
|
|
|
if _, _, err := net.SplitHostPort(s); err != nil {
|
|
|
|
return nil, fmt.Errorf("netcheck: GetReport: bogus STUN6 server %q", s)
|
|
|
|
}
|
|
|
|
}
|
2020-02-28 22:14:02 +00:00
|
|
|
|
2020-02-25 22:05:17 +00:00
|
|
|
closeOnCtx := func(c io.Closer) {
|
|
|
|
<-ctx.Done()
|
|
|
|
c.Close()
|
|
|
|
}
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
v6iface, err := interfaces.HaveIPv6GlobalAddress()
|
2020-02-25 22:05:17 +00:00
|
|
|
if err != nil {
|
2020-03-09 22:20:33 +00:00
|
|
|
c.logf("interfaces: %v", err)
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
2020-03-11 04:30:04 +00:00
|
|
|
|
|
|
|
// Create a UDP4 socket used for sending to our discovered IPv4 address.
|
|
|
|
pc4Hair, err := net.ListenPacket("udp4", ":0")
|
|
|
|
if err != nil {
|
|
|
|
c.logf("udp4: %v", err)
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
defer pc4Hair.Close()
|
|
|
|
hairTimeout := make(chan bool, 1)
|
|
|
|
startHairCheck := func(dstEP string) {
|
|
|
|
if dst, err := net.ResolveUDPAddr("udp4", dstEP); err == nil {
|
2020-03-11 22:35:12 +00:00
|
|
|
pc4Hair.WriteTo(stun.Request(hairTX), dst)
|
2020-03-11 04:30:04 +00:00
|
|
|
time.AfterFunc(500*time.Millisecond, func() { hairTimeout <- true })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-25 22:05:17 +00:00
|
|
|
var (
|
|
|
|
mu sync.Mutex
|
|
|
|
ret = &Report{
|
|
|
|
DERPLatency: map[string]time.Duration{},
|
|
|
|
}
|
2020-03-09 22:20:33 +00:00
|
|
|
gotEP = map[string]string{} // server -> ipPort
|
|
|
|
gotEP4 string
|
|
|
|
bestDerpLatency time.Duration
|
2020-02-25 22:05:17 +00:00
|
|
|
)
|
2020-03-12 21:14:48 +00:00
|
|
|
anyV6 := func() bool {
|
|
|
|
mu.Lock()
|
|
|
|
defer mu.Unlock()
|
|
|
|
return ret.IPv6
|
|
|
|
}
|
|
|
|
anyV4 := func() bool {
|
|
|
|
mu.Lock()
|
|
|
|
defer mu.Unlock()
|
|
|
|
return gotEP4 != ""
|
|
|
|
}
|
2020-03-09 22:20:33 +00:00
|
|
|
add := func(server, ipPort string, d time.Duration) {
|
2020-03-13 16:42:09 +00:00
|
|
|
c.logf("%s says we are %s (in %v)", server, ipPort, d.Round(time.Millisecond))
|
2020-03-09 22:20:33 +00:00
|
|
|
|
|
|
|
ua, err := net.ResolveUDPAddr("udp", ipPort)
|
|
|
|
if err != nil {
|
|
|
|
c.logf("[unexpected] STUN addr %q", ipPort)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
isV6 := ua.IP.To4() == nil
|
2020-02-25 22:05:17 +00:00
|
|
|
|
|
|
|
mu.Lock()
|
|
|
|
defer mu.Unlock()
|
|
|
|
ret.UDP = true
|
|
|
|
ret.DERPLatency[server] = d
|
2020-03-09 22:20:33 +00:00
|
|
|
if isV6 {
|
2020-02-25 22:05:17 +00:00
|
|
|
ret.IPv6 = true
|
2020-03-09 22:20:33 +00:00
|
|
|
ret.GlobalV6 = ipPort
|
|
|
|
// TODO: track MappingVariesByDestIP for IPv6
|
|
|
|
// too? Would be sad if so, but who knows.
|
2020-03-04 21:40:29 +00:00
|
|
|
} else {
|
|
|
|
// IPv4
|
2020-03-09 22:20:33 +00:00
|
|
|
if gotEP4 == "" {
|
|
|
|
gotEP4 = ipPort
|
|
|
|
ret.GlobalV4 = ipPort
|
2020-03-11 04:30:04 +00:00
|
|
|
startHairCheck(ipPort)
|
2020-03-04 21:40:29 +00:00
|
|
|
} else {
|
2020-03-09 22:20:33 +00:00
|
|
|
if gotEP4 != ipPort {
|
2020-03-04 21:40:29 +00:00
|
|
|
ret.MappingVariesByDestIP.Set(true)
|
|
|
|
} else if ret.MappingVariesByDestIP == "" {
|
|
|
|
ret.MappingVariesByDestIP.Set(false)
|
|
|
|
}
|
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
2020-03-09 22:20:33 +00:00
|
|
|
gotEP[server] = ipPort
|
2020-03-04 06:21:56 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
if ret.PreferredDERP == 0 || d < bestDerpLatency {
|
|
|
|
bestDerpLatency = d
|
|
|
|
ret.PreferredDERP = c.DERP.NodeIDOfSTUNServer(server)
|
2020-03-04 06:21:56 +00:00
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
var pc4, pc6 STUNConn
|
2020-02-25 22:05:17 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
if f := c.GetSTUNConn4; f != nil {
|
|
|
|
pc4 = f()
|
|
|
|
} else {
|
|
|
|
u4, err := net.ListenPacket("udp4", ":0")
|
|
|
|
if err != nil {
|
|
|
|
c.logf("udp4: %v", err)
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
pc4 = u4
|
|
|
|
go closeOnCtx(u4)
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
2020-02-28 22:14:02 +00:00
|
|
|
|
2020-03-09 22:20:33 +00:00
|
|
|
if v6iface {
|
|
|
|
if f := c.GetSTUNConn6; f != nil {
|
|
|
|
pc6 = f()
|
2020-02-25 22:05:17 +00:00
|
|
|
} else {
|
2020-03-09 22:20:33 +00:00
|
|
|
u6, err := net.ListenPacket("udp6", ":0")
|
|
|
|
if err != nil {
|
|
|
|
c.logf("udp6: %v", err)
|
|
|
|
} else {
|
|
|
|
pc6 = u6
|
|
|
|
go closeOnCtx(u6)
|
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-11 04:30:04 +00:00
|
|
|
reader := func(s *stunner.Stunner, pc STUNConn) {
|
2020-02-25 22:05:17 +00:00
|
|
|
var buf [64 << 10]byte
|
2020-03-11 04:30:04 +00:00
|
|
|
for {
|
2020-02-25 22:05:17 +00:00
|
|
|
n, addr, err := pc.ReadFrom(buf[:])
|
|
|
|
if err != nil {
|
|
|
|
if ctx.Err() != nil {
|
|
|
|
return
|
|
|
|
}
|
2020-03-09 22:20:33 +00:00
|
|
|
c.logf("ReadFrom: %v", err)
|
2020-02-25 22:05:17 +00:00
|
|
|
return
|
|
|
|
}
|
|
|
|
ua, ok := addr.(*net.UDPAddr)
|
|
|
|
if !ok {
|
2020-03-09 22:20:33 +00:00
|
|
|
c.logf("ReadFrom: unexpected addr %T", addr)
|
2020-02-25 22:05:17 +00:00
|
|
|
continue
|
|
|
|
}
|
2020-03-11 04:30:04 +00:00
|
|
|
if c.handleHairSTUN(buf[:n], ua) {
|
|
|
|
continue
|
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
s.Receive(buf[:n], ua)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var grp errgroup.Group
|
2020-02-28 22:14:02 +00:00
|
|
|
|
2020-02-25 22:05:17 +00:00
|
|
|
s4 := &stunner.Stunner{
|
|
|
|
Send: pc4.WriteTo,
|
|
|
|
Endpoint: add,
|
2020-03-09 22:20:33 +00:00
|
|
|
Servers: stuns4,
|
|
|
|
Logf: c.logf,
|
2020-03-05 18:29:19 +00:00
|
|
|
DNSCache: dnscache.Get(),
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
c.mu.Lock()
|
2020-03-09 22:20:33 +00:00
|
|
|
c.s4 = s4
|
2020-03-11 22:35:12 +00:00
|
|
|
c.mu.Unlock()
|
|
|
|
|
2020-03-11 20:36:52 +00:00
|
|
|
grp.Go(func() error {
|
|
|
|
err := s4.Run(ctx)
|
2020-03-12 21:14:48 +00:00
|
|
|
if errors.Is(err, context.DeadlineExceeded) {
|
|
|
|
if !anyV4() {
|
|
|
|
c.logf("netcheck: no IPv4 UDP STUN replies")
|
|
|
|
}
|
2020-03-11 20:36:52 +00:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
return err
|
|
|
|
})
|
2020-03-09 22:20:33 +00:00
|
|
|
if c.GetSTUNConn4 == nil {
|
2020-03-11 04:30:04 +00:00
|
|
|
go reader(s4, pc4)
|
2020-02-28 22:14:02 +00:00
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
|
2020-03-11 04:30:04 +00:00
|
|
|
if pc6 != nil && len(stuns6) > 0 {
|
2020-02-25 22:05:17 +00:00
|
|
|
s6 := &stunner.Stunner{
|
|
|
|
Endpoint: add,
|
|
|
|
Send: pc6.WriteTo,
|
2020-03-09 22:20:33 +00:00
|
|
|
Servers: stuns6,
|
|
|
|
Logf: c.logf,
|
2020-02-25 22:05:17 +00:00
|
|
|
OnlyIPv6: true,
|
2020-03-05 18:29:19 +00:00
|
|
|
DNSCache: dnscache.Get(),
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
2020-03-11 22:35:12 +00:00
|
|
|
|
|
|
|
c.mu.Lock()
|
2020-03-09 22:20:33 +00:00
|
|
|
c.s6 = s6
|
2020-03-11 22:35:12 +00:00
|
|
|
c.mu.Unlock()
|
|
|
|
|
2020-03-11 19:38:41 +00:00
|
|
|
grp.Go(func() error {
|
2020-03-12 21:14:48 +00:00
|
|
|
err := s6.Run(ctx)
|
|
|
|
if errors.Is(err, context.DeadlineExceeded) {
|
|
|
|
if !anyV6() {
|
|
|
|
// IPv6 seemed like it was configured, but actually failed.
|
|
|
|
// Just log and return a nil error.
|
|
|
|
c.logf("netcheck: IPv6 seemed configured, but no UDP STUN replies")
|
|
|
|
}
|
|
|
|
return nil
|
2020-03-11 19:38:41 +00:00
|
|
|
}
|
2020-03-12 21:14:48 +00:00
|
|
|
// Otherwise must be some invalid use of Stunner.
|
|
|
|
return err //
|
2020-03-11 19:38:41 +00:00
|
|
|
})
|
2020-03-09 22:20:33 +00:00
|
|
|
if c.GetSTUNConn6 == nil {
|
2020-03-11 04:30:04 +00:00
|
|
|
go reader(s6, pc6)
|
2020-03-09 22:20:33 +00:00
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
err = grp.Wait()
|
2020-02-28 17:40:25 +00:00
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
|
|
|
|
mu.Lock()
|
2020-03-02 23:02:34 +00:00
|
|
|
defer mu.Unlock()
|
2020-02-25 22:05:17 +00:00
|
|
|
|
2020-03-04 21:40:29 +00:00
|
|
|
// Check hairpinning.
|
2020-03-11 04:30:04 +00:00
|
|
|
if ret.MappingVariesByDestIP == "false" && gotEP4 != "" {
|
|
|
|
select {
|
2020-03-11 22:35:12 +00:00
|
|
|
case <-gotHairSTUN:
|
2020-03-11 04:30:04 +00:00
|
|
|
ret.HairPinning.Set(true)
|
|
|
|
case <-hairTimeout:
|
|
|
|
ret.HairPinning.Set(false)
|
2020-02-28 22:14:02 +00:00
|
|
|
}
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|
|
|
|
|
2020-03-04 16:20:38 +00:00
|
|
|
// TODO: if UDP is blocked, try to measure TCP connect times
|
|
|
|
// to DERP nodes instead? So UDP-blocked users still get a
|
|
|
|
// decent DERP node, rather than being randomly assigned to
|
|
|
|
// the other side of the planet? Or try ICMP? (likely also
|
|
|
|
// blocked?)
|
|
|
|
|
2020-03-02 23:02:34 +00:00
|
|
|
return ret.Clone(), nil
|
2020-02-25 22:05:17 +00:00
|
|
|
}
|