feat: daemon works well on Windows

This commit is contained in:
fengcaiwen
2023-09-15 23:20:24 +08:00
committed by naison
parent 977d902b8b
commit 49e8a14118
2 changed files with 8 additions and 8 deletions

View File

@@ -46,10 +46,10 @@ func (o *SvrOption) Start(ctx context.Context) error {
}
defer lis.Close()
//err = os.Chmod(GetSockPath(o.IsSudo), 0666)
//if err != nil {
// return err
//}
err = os.Chmod(GetSockPath(o.IsSudo), 0666)
if err != nil {
return err
}
o.svr = grpc.NewServer()
cleanup, err := admin.Register(o.svr)