kilo/vendor/golang.org/x/net/http2
leonnicolas 6a696e03e7
migrate to golang.zx2c4.com/wireguard/wgctrl (#239)
* migrate to golang.zx2c4.com/wireguard/wgctrl

This commit introduces the usage of wgctrl.
It avoids the usage of exec calls of the wg command
and parsing the output of `wg show`.

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* vendor wgctrl

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* apply suggestions from code review

Remove wireguard.Enpoint struct and use net.UDPAddr for the resolved
endpoint and addr string (dnsanme:port) if a DN was supplied.

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* 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>

* pkg/wireguard/conf_test.go: add tests for Endpoint

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* cmd/kg/main.go: validate port range

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* add suggestions from review

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* pkg/mesh/mesh.go: use Equal func

Implement an Equal func for Enpoint and use it instead of comparing
strings.

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* cmd/kgctl/main.go: check port range

Signed-off-by: leonnicolas <leonloechner@gmx.de>

* vendor

Signed-off-by: leonnicolas <leonloechner@gmx.de>
2022-01-30 17:38:45 +01:00
..
hpack migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
.gitignore init 2019-01-18 02:50:10 +01:00
ascii.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
ciphers.go init 2019-01-18 02:50:10 +01:00
client_conn_pool.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
databuffer.go init 2019-01-18 02:50:10 +01:00
Dockerfile Use apiextension v1 2021-06-14 12:59:33 +02:00
errors.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
flow.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
frame.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
go111.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
go115.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
gotrack.go init 2019-01-18 02:50:10 +01:00
headermap.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
http2.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
Makefile init 2019-01-18 02:50:10 +01:00
not_go111.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
not_go115.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
pipe.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
server.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
transport.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
write.go migrate to golang.zx2c4.com/wireguard/wgctrl (#239) 2022-01-30 17:38:45 +01:00
writesched_priority.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
writesched_random.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00
writesched.go go.mod: bump client-go and api machinerie 2021-05-15 12:12:50 +02:00