fes

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 3a5fea9de8ffd74bef1b5a51fdfb60df696269e8
parent bac771d70016977fb14db2d6134f8bfc97732576
Author: vx-clutch <[email protected]>
Date:   Mon,  1 Dec 2025 19:17:22 -0500

update fallback 404

Diffstat:
Msrc/server/server.go | 10+++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/server/server.go b/src/server/server.go @@ -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 {