diff --git a/conf/pathconf.go b/conf/pathconf.go index d7fe5a0d..9b3a9d14 100644 --- a/conf/pathconf.go +++ b/conf/pathconf.go @@ -116,7 +116,7 @@ func (pconf *PathConf) fillAndCheck(name string) error { return fmt.Errorf("source redirect must be filled") } - _, err := url.Parse(pconf.SourceRedirect) + u, err := url.Parse(pconf.SourceRedirect) if err != nil { return fmt.Errorf("'%s' is not a valid rtsp url", pconf.SourceRedirect) }