update fallback 404

This commit is contained in:
2025-12-01 19:17:22 -05:00
parent bac771d700
commit 3a5fea9de8

View File

@@ -276,7 +276,15 @@ func Start(dir string) error {
return fmt.Errorf("failed to read www directory: %w", err)
}
notFoundData := "404 Page Not Found"
notFoundData := `
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>fes</center>
</body>
</html>
`
if _, err := os.Stat(filepath.Join(wwwDir, "404.lua")); err == nil {
notFoundData, err = loadLua(dir, filepath.Join(wwwDir, "404.lua"), &cfg)
if err != nil {