mirror of
https://github.com/tailscale/tailscale.git
synced 2024-12-01 14:05:39 +00:00
cmd/tailscale: warn to stderr that netcheck -format=json isn't stable
This commit is contained in:
parent
24009241bf
commit
984a699219
@ -12,6 +12,7 @@
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/peterbourgon/ff/v2/ffcli"
|
"github.com/peterbourgon/ff/v2/ffcli"
|
||||||
@ -53,6 +54,10 @@ func runNetcheck(ctx context.Context, args []string) error {
|
|||||||
c.Logf = logger.Discard
|
c.Logf = logger.Discard
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if strings.HasPrefix(netcheckArgs.format, "json") {
|
||||||
|
fmt.Fprintln(os.Stderr, "# Warning: this JSON format is not yet considered a stable interface")
|
||||||
|
}
|
||||||
|
|
||||||
dm := derpmap.Prod()
|
dm := derpmap.Prod()
|
||||||
for {
|
for {
|
||||||
t0 := time.Now()
|
t0 := time.Now()
|
||||||
|
Loading…
Reference in New Issue
Block a user