This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from titanium007/bug-fixes
Bug fixes
- Loading branch information
Showing
13 changed files
with
238 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Net; | ||
using System.Net.Sockets; | ||
using System.Text; | ||
|
||
namespace Titanium.Web.Proxy.Models | ||
{ | ||
public abstract class ProxyEndPoint | ||
{ | ||
public ProxyEndPoint(IPAddress IpAddress, int Port, bool EnableSsl) | ||
{ | ||
this.IpAddress = IpAddress; | ||
this.Port = Port; | ||
this.EnableSsl = EnableSsl; | ||
} | ||
|
||
public IPAddress IpAddress { get; internal set; } | ||
public int Port { get; internal set; } | ||
public bool EnableSsl { get; internal set; } | ||
|
||
internal TcpListener listener { get; set; } | ||
} | ||
|
||
public class ExplicitProxyEndPoint : ProxyEndPoint | ||
{ | ||
internal bool IsSystemProxy { get; set; } | ||
public List<string> ExcludedHostNameRegex { get; set; } | ||
|
||
public ExplicitProxyEndPoint(IPAddress IpAddress, int Port, bool EnableSsl) | ||
: base(IpAddress, Port, EnableSsl) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public class TransparentProxyEndPoint : ProxyEndPoint | ||
{ | ||
public TransparentProxyEndPoint(IPAddress IpAddress, int Port, bool EnableSsl) | ||
: base(IpAddress, Port, EnableSsl) | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.