tailcfg: add HostinfoView version of TailscaleSSHEnabled

Signed-off-by: Mihai Parparita <mihai@tailscale.com>
This commit is contained in:
Mihai Parparita 2022-06-08 11:55:43 -07:00 committed by Mihai Parparita
parent d8c05fc1b2
commit b788a5ba7e

View File

@ -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