group vars together

This commit is contained in:
Nico 2021-02-11 22:12:27 +00:00
parent 46c54be46b
commit f046166bad
1 changed files with 5 additions and 6 deletions

11
main.go
View File

@ -23,6 +23,11 @@ var (
hosts tofu.KnownHosts
hostsfile *tofu.HostWriter
scanner *bufio.Scanner
face font.Face
fbinkOpts gofbink.FBInkConfig
fb *gofbink.FBInk
f *truetype.Font
t *koboin.TouchDevice
)
// Visual options
@ -34,12 +39,6 @@ const (
keyspacing float64 = 5 // spacing between keys
)
var f *truetype.Font
var face font.Face
var fb *gofbink.FBInk
var fbinkOpts gofbink.FBInkConfig
var t *koboin.TouchDevice
func trustCertificate(hostname string, cert *x509.Certificate) error {
host := tofu.NewHost(hostname, cert.Raw, cert.NotAfter)
knownHost, ok := hosts.Lookup(hostname)