blob: 88660bd805886b6e9b6d4484b18b9bc1dd3a9c5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//go:build !linux
package wireguard
import (
"fmt"
"git.theodohertyfamily.com/wg-wrap/pkg/wgconf"
)
type Tunnel struct{}
func StartTunnel(cfg *wgconf.Config) (*Tunnel, error) {
return nil, fmt.Errorf("wireguard tunnel is not supported on non-Linux platforms")
}
func (t *Tunnel) Close() {}
func GetTunnelLocalIP(cfg *wgconf.Config) (string, error) {
return "", fmt.Errorf("wireguard tunnel is not supported on non-Linux platforms")
}
|