safesocket: remove the IPN protocol support
Updates #6417 Change-Id: I78908633de842d83b2cc8b10a864a0f88ab1b113 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
06c4c47d46
commit
0cb2ccce7f
+6
-2
@@ -2,16 +2,20 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package version
|
||||
package version_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"tailscale.com/tstest"
|
||||
"tailscale.com/version"
|
||||
)
|
||||
|
||||
func TestParse(t *testing.T) {
|
||||
parse := version.ExportParse
|
||||
type parsed = version.ExportParsed
|
||||
|
||||
tests := []struct {
|
||||
version string
|
||||
parsed parsed
|
||||
@@ -71,7 +75,7 @@ func TestAtLeast(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
got := AtLeast(test.v, test.m)
|
||||
got := version.AtLeast(test.v, test.m)
|
||||
if got != test.want {
|
||||
t.Errorf("AtLeast(%q, %q) = %v, want %v", test.v, test.m, got, test.want)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
// Copyright (c) 2022 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 version
|
||||
|
||||
var (
|
||||
ExportParse = parse
|
||||
ExportFindModuleInfo = findModuleInfo
|
||||
ExportCmdName = cmdName
|
||||
)
|
||||
|
||||
type (
|
||||
ExportParsed = parsed
|
||||
)
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package version
|
||||
package version_test
|
||||
|
||||
import (
|
||||
"flag"
|
||||
@@ -11,6 +11,13 @@ import (
|
||||
"runtime"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"tailscale.com/version"
|
||||
)
|
||||
|
||||
var (
|
||||
findModuleInfo = version.ExportFindModuleInfo
|
||||
cmdName = version.ExportCmdName
|
||||
)
|
||||
|
||||
func TestFindModuleInfo(t *testing.T) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package version
|
||||
package version_test
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
Reference in New Issue
Block a user