mirror of
https://github.com/bitvora/wot-relay.git
synced 2025-04-22 16:51:28 +00:00
why crash
This commit is contained in:
parent
bd451386dc
commit
e47aa19fa4
5
main.go
5
main.go
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user