feat: add legacy IP access filtering

This commit is contained in:
OpenClaw Agent
2026-09-21 13:20:29 +08:00
parent 3175b06295
commit 8a82e48507
2 changed files with 79 additions and 2 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ func main() {
if err != nil {
log.Fatal(err)
}
srv := &api.Server{Store: storage.Local{Root: root}, Auth: mgr, Sessions: map[string]*auth.Account{}, WebDAVRoot: root}
srv := &api.Server{Store: storage.Local{Root: root}, Auth: mgr, Sessions: map[string]*auth.Account{}, WebDAVRoot: root, Allow: cfg.Allow}
addr := ":" + itoa(cfg.Port)
log.Printf("chfs-ng listening on %s root=%s", addr, filepath.Clean(root))
if cfg.SSLCert != "" && cfg.SSLKey != "" {