blob: 47d7b411e9812bd1b34e5fb7c16319fccfd766c7 (
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/tools/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")
}
|