tsnet: set varRoot state directory field

This makes tsnet work on https://gokrazy.org! 🎉

Signed-off-by: Michael Stapelberg <michael@stapelberg.de>
pull/3267/head
Michael Stapelberg 3 years ago committed by Brad Fitzpatrick
parent e6fbc0cd54
commit b3abdc381d

@ -148,6 +148,7 @@ func (s *Server) start() error {
if err != nil {
return fmt.Errorf("NewLocalBackend: %v", err)
}
lb.SetVarRoot(s.dir)
s.lb = lb
lb.SetDecompressor(func() (controlclient.Decompressor, error) {
return smallzstd.NewDecoder(nil)

Loading…
Cancel
Save