Files
gluetun/internal/constants/vpn/protocol.go
Quentin McGaw 1a6e8d74d6 wip
2024-08-01 07:51:35 +00:00

16 lines
246 B
Go

package vpn
const (
OpenVPN = "openvpn"
Wireguard = "wireguard"
Both = "openvpn+wireguard"
)
func IsWireguard(s string) bool {
return s == Wireguard || s == Both
}
func IsOpenVPN(s string) bool {
return s == OpenVPN || s == Both
}