aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/services/names.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/names.go')
-rw-r--r--services/names.go26
1 files changed, 0 insertions, 26 deletions
diff --git a/services/names.go b/services/names.go
deleted file mode 100644
index 74445482..00000000
--- a/services/names.go
+++ /dev/null
@@ -1,26 +0,0 @@
-/* SPDX-License-Identifier: MIT
- *
- * Copyright (C) 2019 WireGuard LLC. All Rights Reserved.
- */
-
-package services
-
-import (
- "errors"
-
- "golang.zx2c4.com/wireguard/windows/conf"
-)
-
-func ServiceNameOfTunnel(tunnelName string) (string, error) {
- if !conf.TunnelNameIsValid(tunnelName) {
- return "", errors.New("Tunnel name is not valid")
- }
- return "WireGuardTunnel$" + tunnelName, nil
-}
-
-func PipePathOfTunnel(tunnelName string) (string, error) {
- if !conf.TunnelNameIsValid(tunnelName) {
- return "", errors.New("Tunnel name is not valid")
- }
- return `\\.\pipe\ProtectedPrefix\Administrators\WireGuard\` + tunnelName, nil
-}