server: add filer-specific disableHttp flag (#11360)

This commit is contained in:
Chris Lu
2026-09-16 14:18:57 -07:00
committed by GitHub
parent a859f0a019
commit 0c7beec697
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
package command
import "testing"
func TestServerFilerDisableHttpFlag(t *testing.T) {
flag := cmdServer.Flag.Lookup("filer.disableHttp")
if flag == nil {
t.Fatal("weed server does not expose -filer.disableHttp")
}
if flag.DefValue != "false" {
t.Fatalf("-filer.disableHttp default = %q, want false", flag.DefValue)
}
}