feature/portmapper: make the portmapper & its debugging tools modular
Starting at a minimal binary and adding one feature back...
tailscaled tailscale combined (linux/amd64)
30073135 17451704 31543692 omitting everything
+ 480302 + 10258 + 493896 .. add debugportmapper
+ 475317 + 151943 + 467660 .. add portmapper
+ 500086 + 162873 + 510511 .. add portmapper+debugportmapper
Fixes #17148
Change-Id: I90bd0e9d1bd8cbe64fa2e885e9afef8fb5ee74b1
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
2b0f59cd38
commit
99b3f69126
@@ -90,3 +90,21 @@ func TestOmitTailnetLock(t *testing.T) {
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
func TestOmitPortmapper(t *testing.T) {
|
||||
deptest.DepChecker{
|
||||
GOOS: "linux",
|
||||
GOARCH: "amd64",
|
||||
Tags: "ts_omit_portmapper,ts_include_cli,ts_omit_debugportmapper",
|
||||
OnDep: func(dep string) {
|
||||
if dep == "tailscale.com/net/portmapper" {
|
||||
t.Errorf("unexpected dep with ts_omit_portmapper: %q", dep)
|
||||
return
|
||||
}
|
||||
if strings.Contains(dep, "goupnp") || strings.Contains(dep, "/soap") ||
|
||||
strings.Contains(dep, "internetgateway2") {
|
||||
t.Errorf("unexpected dep with ts_omit_portmapper: %q", dep)
|
||||
}
|
||||
},
|
||||
}.Check(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user