Update CommandInvoker.cs

This commit is contained in:
nilaoda 2022-09-25 14:16:13 +08:00
parent 5fa65168ee
commit 5c3028b31c
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ namespace N_m3u8DL_RE.CommandLine
var uri = new Uri(input); var uri = new Uri(input);
var proxy = new WebProxy(uri, true); var proxy = new WebProxy(uri, true);
if (uri.UserInfo != null) if (!string.IsNullOrEmpty(uri.UserInfo))
{ {
var infos = uri.UserInfo.Split(':'); var infos = uri.UserInfo.Split(':');
proxy.Credentials = new NetworkCredential(infos.First(), infos.Last()); proxy.Credentials = new NetworkCredential(infos.First(), infos.Last());