absolut dir

This commit is contained in:
Zorglube 2020-08-20 18:53:49 +02:00 committed by Bertrand Moreau
parent dc2965194c
commit 4153c7c84b
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ func setupSettings() error {
func main() {
&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(&rtmpAddr, "r", "", "host:port of the RTMP server")
flag.StringVar(&sKey, "k", "", "Stream key, to protect your stream")