Skip to main content

WindowsProxy

A static class in TavernLib, TavernLib.Backend.

Reads the current user's Windows proxy settings from the registry. Used by ServerListingController's HTTP client.

Fields​

1 private and internal field
MemberWhat it is
private const string InternetSettingsKeyRegistry path of the current user's Internet Settings.

Methods​

MemberWhat it is
static IWebProxy CreateSystemProxy()A WebProxy for the explicitly set ProxyServer with its bypass list, or null if none is on. PAC scripts are ignored.
2 private and internal methods
MemberWhat it is
private static Uri ParseProxyServer(string proxyServer, string protocol)Reads the ProxyServer value (a single host:port or a per-protocol list) into a URI for the given protocol, or null.
private static string RegexEscapeForBypass(string wildcardEntry)Turns a wildcard proxy override entry into an anchored regex for the bypass list.