mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: update tailscale to improve block endpoints functionality (#17496)
Direct endpoints from the peer will no longer be processed.
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"os/exec"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
@@ -156,6 +157,14 @@ func TestIntegration(t *testing.T) {
|
||||
// isolated NetNS.
|
||||
t.Parallel()
|
||||
|
||||
// Fail early if NGINX is not installed in tests that require it.
|
||||
if _, ok := topo.Server.(integration.NGINXServerOptions); ok {
|
||||
_, err := exec.LookPath("nginx")
|
||||
if err != nil {
|
||||
t.Fatalf("could not find nginx in PATH: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
log := testutil.Logger(t)
|
||||
networking := topo.SetupNetworking(t, log)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user