// Token: 0x060004BF RID: 1215 RVA: 0x00009FC4 File Offset: 0x000081C4
 public HttpProxy(IGtHttpProxy p)
 {
     if (!string.IsNullOrWhiteSpace(p.Host) && p.Host.Length > 0)
     {
         isProxy = true;
     }
     else
     {
         isProxy = false;
     }
     if (p.User == null)
     {
         p.User = "";
     }
     if (p.Password == null)
     {
         p.Password = "";
     }
     if (!string.IsNullOrWhiteSpace(p.User) || !string.IsNullOrWhiteSpace(p.Password))
     {
         isProxyAuth = true;
     }
     else
     {
         isProxyAuth = false;
     }
     proxy = p;
 }
Beispiel #2
0
 public HttpProxy(IGtHttpProxy p)
 {
     this.isProxy = !string.IsNullOrWhiteSpace(p.Host) && p.Host.Length > 0;
     if (p.User == null)
     {
         p.User = "";
     }
     if (p.Password == null)
     {
         p.Password = "";
     }
     this.isProxyAuth = !string.IsNullOrWhiteSpace(p.User) || !string.IsNullOrWhiteSpace(p.Password);
     this.proxy       = p;
 }