Relative dir

This commit is contained in:
Zorglube 2020-08-20 18:49:26 +02:00 committed by Zorglube
parent a8d1019dc0
commit 304e4751e2
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
"net/http"
"os"
"os/signal"
// "path/filepath"
"path/filepath"
"github.com/gorilla/sessions"
"github.com/nareix/joy4/format"
@ -22,6 +22,7 @@ var (
stats = newStreamStats()
sAdminPass string
confFile string
path string
)
func setupSettings() error {
@ -50,6 +51,7 @@ func setupSettings() error {
}
func main() {
&path, err := filepath.Abs(filepath.Dir(os.Args[0]))
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")