mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-27 03:55:36 +00:00
20 lines
342 B
Go
20 lines
342 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
package router
|
||
|
|
||
|
import (
|
||
|
"path/filepath"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestGetNetshPath(t *testing.T) {
|
||
|
ft := &firewallTweaker{
|
||
|
logf: t.Logf,
|
||
|
}
|
||
|
path := ft.getNetshPath()
|
||
|
if !filepath.IsAbs(path) {
|
||
|
t.Errorf("expected absolute path for netsh.exe: %q", path)
|
||
|
}
|
||
|
}
|