portlist: stop logging stray UDP ports

These "weird" port lines show up in logs frequently.
They're the result of uninteresting races,
and they're not actionable. Remove the noise.

Remove the isLoopbackAddr case to placate staticcheck.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/2688/head
Josh Bleecher Snyder 3 years ago committed by Josh Bleecher Snyder
parent a83f08c54b
commit a3c5de641b

@ -12,7 +12,6 @@ import (
"bytes"
"fmt"
"log"
"os"
"os/exec"
"strings"
"sync/atomic"
@ -99,10 +98,8 @@ func addProcesses(pl []Port) ([]Port, error) {
switch {
case p != nil:
p.Process = cmd
case isLoopbackAddr(val):
// ignore
default:
fmt.Fprintf(os.Stderr, "weird: missing %v\n", pp)
// ignore: processes and ports come and go
}
}
}

Loading…
Cancel
Save