diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-10-27 14:39:33 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-27 16:20:09 +0100 |
commit | 36dc8b6994514e42fcdf00ba91774148afbefc1c (patch) | |
tree | 1b2cefda0dac8db4f27b3ec7d72454a68fd7378e /tun/tun_windows.go | |
parent | 2057f19a61cedbb0fef88823c832b04165325ab1 (diff) |
tun: use GetsockoptString in (*NativeTun).Name on macOS
Direct syscalls using unix.Syscall(unix.SYS_*, ...) are discouraged on
macOS and might not be supported in future versions. Instead, use the
existing unix.GetsockoptString wrapper to get the interface name.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/tun_windows.go')
0 files changed, 0 insertions, 0 deletions