absolut dir
This commit is contained in:
parent
304e4751e2
commit
8c7a303e14
5
main.go
5
main.go
@ -52,6 +52,11 @@ func setupSettings() error {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
&path, err := filepath.Abs(filepath.Dir(os.Args[0]))
|
&path, err := filepath.Abs(filepath.Dir(os.Args[0]))
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
fmt.Println(path)
|
||||||
|
|
||||||
flag.StringVar(&addr, "l", "", "host:port of the HTTP server")
|
flag.StringVar(&addr, "l", "", "host:port of the HTTP server")
|
||||||
flag.StringVar(&rtmpAddr, "r", "", "host:port of the RTMP server")
|
flag.StringVar(&rtmpAddr, "r", "", "host:port of the RTMP server")
|
||||||
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")
|
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")
|
||||||
|
Loading…
Reference in New Issue
Block a user