mirror of
https://github.com/netchx/netch.git
synced 2026-03-18 18:13:21 +08:00
update HTTPController
This commit is contained in:
@@ -15,8 +15,6 @@ namespace Netch.Controllers
|
||||
{
|
||||
public class HTTPController : IModeController
|
||||
{
|
||||
public const string IEProxyExceptions = "localhost;127.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;192.168.*";
|
||||
|
||||
public PrivoxyController pPrivoxyController = new();
|
||||
|
||||
private string prevBypass, prevHTTP, prevPAC;
|
||||
@@ -50,7 +48,7 @@ namespace Netch.Controllers
|
||||
using var service = new ProxyService
|
||||
{
|
||||
Server = $"127.0.0.1:{Global.Settings.HTTPLocalPort}",
|
||||
Bypass = IEProxyExceptions
|
||||
Bypass = string.Join(";", ProxyService.LanIp)
|
||||
};
|
||||
service.Global();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user