mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-24 01:31:55 +00:00
ipnlocal, net/*: deprecate interfaces.GetState, use netmon more for it
Updates #cleanup Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
6d65c04987
commit
66e46bf501
@@ -166,6 +166,8 @@ type Client struct {
|
||||
// NetMon optionally provides a netmon.Monitor to use to get the current
|
||||
// (cached) network interface.
|
||||
// If nil, the interface will be looked up dynamically.
|
||||
// TODO(bradfitz): make NetMon required. As of 2023-08-01, it basically always is
|
||||
// present anyway.
|
||||
NetMon *netmon.Monitor
|
||||
|
||||
// TimeNow, if non-nil, is used instead of time.Now.
|
||||
|
||||
Reference in New Issue
Block a user