feat: add protected SMB disk-root sharing

This commit is contained in:
Meghdad committed 2026-10-16 15:37:29 +03:30
1 parent b9cb187f0d
commit 1ca321e312
18 files changed
+480 -21

No files matched your search

+1 -1
View File
@@ -108,7 +108,7 @@ func serve(ctx context.Context, c config) error {
if c.Diagnostics {
diagnostic = log.Printf
}
err = smb.Serve(ctx, ln, smb.Config{ExpectedRoot: initial, Ready: func() {
err = smb.Serve(ctx, ln, smb.Config{ProtectedPaths: c.protectedRelative, ExpectedRoot: initial, Ready: func() {
log.Print("SMB ready; authenticated signing required; read_only=", c.ReadOnly)
if c.ready != nil {
c.ready()