1
0
mirror of https://github.com/fumiama/terasu-cloudflared.git synced 2026-06-09 04:30:31 +08:00

TUN-3995: Optional --features flag for tunnel run.

These features will be included in the ClientInfo.Features field when
running a named tunnel.
This commit is contained in:
Adam Chalmers
2021-03-02 16:16:38 -06:00
parent b73c039070
commit 5c7b451e17
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
package tunnel
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestDedup(t *testing.T) {
expected := []string{"a", "b"}
actual := dedup([]string{"a", "b", "a"})
require.Equal(t, expected, actual)
}