You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/wgengine/wgcfg
Josh Bleecher Snyder 1f6c4ba7c3 wgengine/wgcfg: prevent ReconfigDevice from hanging on error
When wireguard-go's UAPI interface fails with an error, ReconfigDevice hangs.
Fix that by buffering the channel and closing the writer after the call.
The code now matches the corresponding code in DeviceConfig, where I got it right.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
4 years ago
..
nmcfg all: delete wgcfg.Key and wgcfg.PrivateKey 4 years ago
config.go all: delete wgcfg.Key and wgcfg.PrivateKey 4 years ago
device.go wgengine/wgcfg: prevent ReconfigDevice from hanging on error 4 years ago
device_test.go all: delete wgcfg.Key and wgcfg.PrivateKey 4 years ago
parser.go all: delete wgcfg.Key and wgcfg.PrivateKey 4 years ago
parser_test.go wgengine/wgcfg: fix validateEndpoints of empty string 4 years ago
writer.go all: delete wgcfg.Key and wgcfg.PrivateKey 4 years ago