mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-29 13:05:46 +00:00
713c5c9ab1
We used to use "redo" for that, but it was pretty vague.
Also, fix the build tags broken in interfaces_default_route_test.go from
a9745a0b68
, moving those Linux-specific
tests to interfaces_linux_test.go.
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
22 lines
528 B
Go
22 lines
528 B
Go
// Copyright (c) 2021 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.
|
|
|
|
// +build linux darwin,!ts_macext
|
|
|
|
package interfaces
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestDefaultRouteInterface(t *testing.T) {
|
|
// tests /proc/net/route on the local system, cannot make an assertion about
|
|
// the correct interface name, but good as a sanity check.
|
|
v, err := DefaultRouteInterface()
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
t.Logf("got %q", v)
|
|
}
|