From 19bb58404fbf6e274823f6b0ea782be3a731ed90 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 30 Oct 2020 12:42:50 +0100 Subject: [PATCH] fix compilation --- conf/pathconf.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }