config: sync admin and RTMP port defaults

This commit is contained in:
A 2026-07-06 16:29:29 +08:00
parent 597b5f265b
commit c5dc2b7e21
6 changed files with 35 additions and 8 deletions

View file

@ -42,3 +42,9 @@ func TestSPAFallbackSmoke(t *testing.T) {
t.Fatalf("spa body missing root: %s", rec.Body.String())
}
}
func TestAdminAPIURLDefaultUsesAdminAPIPort(t *testing.T) {
if got, want := adminAPIURL(""), "http://127.0.0.1:2599"; got != want {
t.Fatalf("adminAPIURL(empty) = %q, want %q", got, want)
}
}