add ipversion type
This commit is contained in:
parent
d07d267c78
commit
055a1adce3
@ -11,6 +11,13 @@ import (
|
|||||||
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ipVersion int
|
||||||
|
|
||||||
|
const (
|
||||||
|
IPv4 ipVersion = 4
|
||||||
|
IPv6 ipVersion = 6
|
||||||
|
)
|
||||||
|
|
||||||
// see https://github.com/WireGuard/wgctrl-go/blob/master/wgtypes/types.go for definitions
|
// see https://github.com/WireGuard/wgctrl-go/blob/master/wgtypes/types.go for definitions
|
||||||
type PeerConfig struct {
|
type PeerConfig struct {
|
||||||
// Used to update DNS
|
// Used to update DNS
|
||||||
|
Loading…
Reference in New Issue
Block a user