tsnet: set varRoot state directory field

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

Signed-off-by: Michael Stapelberg <[email protected]>
This commit is contained in:
Michael Stapelberg authored and Brad Fitzpatrick committed 2021-11-07 10:56:23 -08:00
1 parent e6fbc0cd54
commit b3abdc381d
1 file changed
+1
+1
View File
@@ -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)