mirror of
https://github.com/statbate/shiny-potato.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
e9ff078dc2
commit
dad37ec59b
8 changed files with 217 additions and 257 deletions
12
app/main.go
12
app/main.go
|
|
@ -56,14 +56,14 @@ func main() {
|
|||
go saveLogs()
|
||||
go broadcast()
|
||||
|
||||
http.HandleFunc("/bongacams/ws/", wsHandler)
|
||||
http.HandleFunc("/bongacams/cmd/", cmdHandler)
|
||||
http.HandleFunc("/bongacams/list/", listHandler)
|
||||
http.HandleFunc("/bongacams/debug/", debugHandler)
|
||||
http.HandleFunc("/stripchat/ws/", wsHandler)
|
||||
http.HandleFunc("/stripchat/cmd/", cmdHandler)
|
||||
http.HandleFunc("/stripchat/list/", listHandler)
|
||||
http.HandleFunc("/stripchat/debug/", debugHandler)
|
||||
|
||||
go fastStart()
|
||||
|
||||
const SOCK = "/tmp/bongacams.sock"
|
||||
const SOCK = "/tmp/stripchat.sock"
|
||||
os.Remove(SOCK)
|
||||
unixListener, err := net.Listen("unix", SOCK)
|
||||
if err != nil {
|
||||
|
|
@ -127,6 +127,6 @@ func fastStart() {
|
|||
Tips: v.Tips,
|
||||
}
|
||||
startRoom(workerData)
|
||||
time.Sleep(2 * time.Second)
|
||||
time.Sleep(5 * time.Second)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue