diff --git a/downloader/downloader.go b/downloader/downloader.go index 30e72ee..ed8e6b6 100644 --- a/downloader/downloader.go +++ b/downloader/downloader.go @@ -253,8 +253,8 @@ func run(use string, args []string, withStdErr, withStdOut bool, stopChan stop.C break } defer pool.ReleaseIP(sourceAddress) - args = append(args, "--source-address", sourceAddress) - cmd := exec.Command("youtube-dl", args...) + argsForCommand := append(args, "--source-address", sourceAddress) + cmd := exec.Command("youtube-dl", argsForCommand...) logrus.Printf("Running command youtube-dl %s", strings.Join(args, " ")) var stderr io.ReadCloser