why crash

This commit is contained in:
Barry Deen 2024-09-06 19:38:39 -04:00
parent bd451386dc
commit e47aa19fa4

View File

@ -112,7 +112,10 @@ func main() {
mux.Handle("/favicon.ico", http.StripPrefix("/", http.FileServer(http.Dir(config.StaticPath))))
fmt.Println("running on :3334")
http.ListenAndServe(":3334", relay)
err := http.ListenAndServe(":3334", relay)
if err != nil {
log.Fatal(err)
}
}
func LoadConfig() Config {