Files
gluetun/internal/constants/vpn/protocol.go

16 lines
246 B
Go
Raw Normal View History

package vpn
const (
OpenVPN = "openvpn"
Wireguard = "wireguard"
2024-08-01 07:51:35 +00:00
Both = "openvpn+wireguard"
)
2024-08-01 07:51:35 +00:00
func IsWireguard(s string) bool {
return s == Wireguard || s == Both
}
func IsOpenVPN(s string) bool {
return s == OpenVPN || s == Both
}