Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ IsMatchInBypassList()

bool System.Net.WebProxy.IsMatchInBypassList ( Uri input)
inlineprivate

Definition at line 180 of file WebProxy.cs.

181 {
183 if (_regexBypassList != null)
184 {
185 Span<char> span = stackalloc char[128];
186 string text;
187 if (!input.IsDefaultPort)
188 {
189 IFormatProvider formatProvider = null;
190 IFormatProvider provider = formatProvider;
191 Span<char> span2 = span;
192 Span<char> initialBuffer = span2;
194 handler.AppendFormatted(input.Scheme);
195 handler.AppendLiteral("://");
196 handler.AppendFormatted(input.Host);
197 handler.AppendLiteral(":");
198 handler.AppendFormatted((uint)input.Port);
199 text = string.Create(provider, initialBuffer, ref handler);
200 }
201 else
202 {
203 IFormatProvider formatProvider = null;
204 IFormatProvider provider2 = formatProvider;
205 Span<char> span2 = span;
206 Span<char> initialBuffer2 = span2;
208 handler2.AppendFormatted(input.Scheme);
209 handler2.AppendLiteral("://");
210 handler2.AppendFormatted(input.Host);
211 text = string.Create(provider2, initialBuffer2, ref handler2);
212 }
213 string input2 = text;
215 foreach (Regex regex in regexBypassList)
216 {
217 if (regex.IsMatch(input2))
218 {
219 return true;
220 }
221 }
222 }
223 return false;
224 }
Regex[] _regexBypassList
Definition WebProxy.cs:16
void UpdateRegexList(bool canThrow)
Definition WebProxy.cs:153

References System.Net.WebProxy._regexBypassList, System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendFormatted(), System.Runtime.CompilerServices.DefaultInterpolatedStringHandler.AppendLiteral(), System.Runtime.Serialization.Dictionary, System.input, System.text, and System.Net.WebProxy.UpdateRegexList().

Referenced by System.Net.WebProxy.IsBypassed().