Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsMatchInBypassList()

bool System.Net.Http.HttpEnvironmentProxy.IsMatchInBypassList ( Uri input)
inlineprivate

Definition at line 109 of file HttpEnvironmentProxy.cs.

110 {
111 if (_bypass != null)
112 {
113 string[] bypass = _bypass;
114 foreach (string text in bypass)
115 {
116 if (text[0] == '.')
117 {
118 if (text.Length - 1 == input.Host.Length && string.Compare(text, 1, input.Host, 0, input.Host.Length, StringComparison.OrdinalIgnoreCase) == 0)
119 {
120 return true;
121 }
122 if (input.Host.EndsWith(text, StringComparison.OrdinalIgnoreCase))
123 {
124 return true;
125 }
126 }
127 else if (string.Equals(text, input.Host, StringComparison.OrdinalIgnoreCase))
128 {
129 return true;
130 }
131 }
132 }
133 return false;
134 }

References System.Net.Http.HttpEnvironmentProxy._bypass, System.Net.Equals, System.input, and System.text.

Referenced by System.Net.Http.HttpEnvironmentProxy.IsBypassed().