Skip to content

Commit

Permalink
fix: add version
Browse files Browse the repository at this point in the history
  • Loading branch information
halwu(吴浩麟) committed May 30, 2017
1 parent 9fa3540 commit 9a0dee3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ import (
)

var (
version = "master"
rtmpAddr = flag.String("rtmp-addr", ":1935", "RTMP server listen address")
httpFlvAddr = flag.String("httpflv-addr", ":7001", "HTTP-FLV server listen address")
hlsAddr = flag.String("hls-addr", ":7002", "HLS server listen address")
operaAddr = flag.String("manage-addr", ":8080", "HTTP manage interface server listen address")
)

func init() {
log.SetFlags(log.Llongfile | log.Ltime | log.Ldate)
log.SetFlags(log.Lshortfile | log.Ltime | log.Ldate)
flag.Parse()
}

Expand Down Expand Up @@ -102,7 +103,7 @@ func main() {
time.Sleep(1 * time.Second)
}
}()

log.Println("start livego", version)
stream := rtmp.NewRtmpStream()
hlsServer := startHls()
startHTTPFlv(stream)
Expand Down

0 comments on commit 9a0dee3

Please sign in to comment.