Files
wireguard-go/device
Josh Bleecher Snyder 4794021bb8 device: add Device.ListenPort and Device.SetListenPort
This is a sample commit for a possible way to make
a Go API that lives alongside UAPI.

The general idea is to add Device and Peer methods
corresponding to UAPI directives, including a way to
look up a peer from a device based on a public key,
as in UAPI.

The UAPI code then deals with parsing and generating textual
input/output, and calls the Go methods to do the work.

This commit also contains a bug fix for a racy access of device.net.port
I will send an independently commit that fixes those directly in UAPI.
This commit is NOT meant to be merged as-is.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
2020-12-22 11:29:28 -08:00
..
2020-11-06 18:01:27 +01:00
2020-12-10 22:37:10 +01:00
2020-11-18 14:24:17 +01:00