From b788a5ba7e9c9e4a2306953c2782eb05dcfd9253 Mon Sep 17 00:00:00 2001 From: Mihai Parparita Date: Wed, 8 Jun 2022 11:55:43 -0700 Subject: [PATCH] tailcfg: add HostinfoView version of TailscaleSSHEnabled Signed-off-by: Mihai Parparita --- tailcfg/tailcfg.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 111ae1cf9..582dfa814 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -483,6 +483,8 @@ func (hi *Hostinfo) TailscaleSSHEnabled() bool { return hi != nil && len(hi.SSH_HostKeys) > 0 } +func (v HostinfoView) TailscaleSSHEnabled() bool { return v.ж.TailscaleSSHEnabled() } + // NetInfo contains information about the host's network state. type NetInfo struct { // MappingVariesByDestIP says whether the host's NAT mappings