absolut dir

This commit is contained in:
Zorglube 2020-08-20 18:53:49 +02:00 committed by Zorglube
parent 304e4751e2
commit 8c7a303e14

View File

@ -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")