feat: add default 404 page for unknown hosts

This commit is contained in:
Wikid82
2025-11-22 19:26:38 -05:00
parent ef82386b22
commit c6771be7a8
9 changed files with 59 additions and 28 deletions

View File

@@ -111,7 +111,7 @@ func TestProxyHostErrors(t *testing.T) {
// Setup Caddy Manager
tmpDir := t.TempDir()
client := caddy.NewClient(caddyServer.URL)
manager := caddy.NewManager(client, db, tmpDir)
manager := caddy.NewManager(client, db, tmpDir, "")
// Setup Handler
h := NewProxyHostHandler(db, manager)
@@ -284,7 +284,7 @@ func TestProxyHostWithCaddyIntegration(t *testing.T) {
// Setup Caddy Manager
tmpDir := t.TempDir()
client := caddy.NewClient(caddyServer.URL)
manager := caddy.NewManager(client, db, tmpDir)
manager := caddy.NewManager(client, db, tmpDir, "")
// Setup Handler
h := NewProxyHostHandler(db, manager)