upd
This commit is contained in:
parent
4806829ba7
commit
f4c0e08486
3
main.go
3
main.go
@ -92,6 +92,9 @@ func wsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
} else if buffer == "status" {
|
||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "/status"})
|
||||
buffer = ""
|
||||
} else if buffer == "reddit" {
|
||||
conn.WriteJSON(map[string]string{"action": "redirect", "url": "https://www.reddit.com/r/openbsd/s/zxEkMj0uaW"})
|
||||
buffer = ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user