Beispiel #1
0
 static ObfsFactory()
 {
     _registeredObfs = new Dictionary <string, Type>();
     foreach (string method in Plain.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(Plain));
     }
     foreach (string method in HttpSimpleObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(HttpSimpleObfs));
     }
     foreach (string method in VerifySimpleObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifySimpleObfs));
     }
     foreach (string method in VerifyDeflateObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifyDeflateObfs));
     }
     foreach (string method in VerifySHA1Obfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifySHA1Obfs));
     }
     foreach (string method in AuthSimple.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthSimple));
     }
 }
Beispiel #2
0
 static ObfsFactory()
 {
     _registeredObfs = new Dictionary <string, Type>();
     foreach (string method in Plain.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(Plain));
     }
     foreach (string method in HttpSimpleObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(HttpSimpleObfs));
     }
     foreach (string method in TlsTicketAuthObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(TlsTicketAuthObfs));
     }
     foreach (string method in VerifySimpleObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifySimpleObfs));
     }
     foreach (string method in VerifyDeflateObfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifyDeflateObfs));
     }
     foreach (string method in VerifySHA1Obfs.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(VerifySHA1Obfs));
     }
     foreach (string method in AuthSHA1.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthSHA1));
     }
     foreach (string method in AuthSHA1V2.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthSHA1V2));
     }
     foreach (string method in AuthSHA1V4.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthSHA1V4));
     }
     foreach (string method in AuthAES128.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthAES128));
     }
     foreach (string method in AuthAES128SHA1.SupportedObfs())
     {
         _registeredObfs.Add(method, typeof(AuthAES128SHA1));
     }
 }