kilo/cmd/kgctl
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
..
graph.go migrate to golang.zx2c4.com/wireguard/wgctrl 2022-01-30 17:02:43 +01:00
main.go cmd/kgctl/main.go: suppress second error message 2021-09-07 11:07:03 +02:00
showconf.go pkg/*: use wireguard.Enpoint 2022-01-30 17:02:46 +01:00