kilo/cmd
leonnicolas 08eea4f3c1
pkg/*: use wireguard.Enpoint
This commit introduces the wireguard.Enpoint struct.
It encapsulates a DN name with port and a net.UPDAddr.
The fields are private and only accessible over exported Methods
to avoid accidental modification.

Also iptables.GetProtocol is improved to avoid ipv4 rules being applied
by `ip6tables`.

Signed-off-by: leonnicolas <leonloechner@gmx.de>
2022-01-30 17:02:46 +01:00
..
docs-gen docs: use consistent notes 2021-07-08 12:15:17 +02:00
kg migrate to golang.zx2c4.com/wireguard/wgctrl 2022-01-30 17:02:43 +01:00
kgctl pkg/*: use wireguard.Enpoint 2022-01-30 17:02:46 +01:00