Cleanup code

This commit is contained in:
Bruce Wayne
2020-01-23 20:44:17 +08:00
parent c5e46844da
commit 087f6e4eb9
33 changed files with 294 additions and 407 deletions

View File

@@ -1,5 +1,5 @@
using Microsoft.Win32;
using System;
using System;
using Microsoft.Win32;
namespace Netch.Controllers
{
@@ -22,14 +22,12 @@ namespace Netch.Controllers
{
if (server.Type == "Socks5")
{
if (!String.IsNullOrWhiteSpace(server.Username) && !String.IsNullOrWhiteSpace(server.Password))
if (!string.IsNullOrWhiteSpace(server.Username) && !string.IsNullOrWhiteSpace(server.Password))
{
return false;
}
else
{
pPrivoxyController.Start(server, mode);
}
pPrivoxyController.Start(server, mode);
}
else
{