mirror of
https://github.com/tailscale/tailscale.git
synced 2025-06-15 12:48:38 +00:00
15 lines
322 B
Go
15 lines
322 B
Go
![]() |
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
package derp
|
||
|
|
||
|
import (
|
||
|
"regexp"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// ValidMeshKey is a regular expression that matches a valid mesh key,
|
||
|
// which must be a 64-character hexadecimal string (lowercase only).
|
||
|
ValidMeshKey = regexp.MustCompile(`^[0-9a-f]{64}$`)
|
||
|
)
|