From 5c3028b31cd4789ec02c52b4ec7c5025d745dd9c Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 25 Sep 2022 14:16:13 +0800 Subject: [PATCH] Update CommandInvoker.cs --- src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index 554eb5b..439f417 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -95,7 +95,7 @@ namespace N_m3u8DL_RE.CommandLine var uri = new Uri(input); var proxy = new WebProxy(uri, true); - if (uri.UserInfo != null) + if (!string.IsNullOrEmpty(uri.UserInfo)) { var infos = uri.UserInfo.Split(':'); proxy.Credentials = new NetworkCredential(infos.First(), infos.Last());