Ejemplo n.º 1
0
 public bool EqTo(BasicSettings target)
 {
     if (target == null ||
         alias != target.alias ||
         description != target.description ||
         port != target.port ||
         address != target.address ||
         isUseTls != target.isUseTls ||
         isSecTls != target.isSecTls ||
         streamType != target.streamType ||
         streamParam1 != target.streamParam1 ||
         streamParam2 != target.streamParam2 ||
         streamParam3 != target.streamParam3)
     {
         return(false);
     }
     return(true);
 }
Ejemplo n.º 2
0
        public void CopyFrom(BasicSettings streamSettings)
        {
            if (streamSettings == null)
            {
                return;
            }

            alias       = streamSettings.alias;
            description = streamSettings.description;
            port        = streamSettings.port;
            address     = streamSettings.address;

            isUseTls     = streamSettings.isUseTls;
            isSecTls     = streamSettings.isSecTls;
            streamType   = streamSettings.streamType;
            streamParam1 = streamSettings.streamParam1;
            streamParam2 = streamSettings.streamParam2;
            streamParam3 = streamSettings.streamParam3;
        }
Ejemplo n.º 3
0
        public void CopyFrom(BasicSettings source)
        {
            if (source == null)
            {
                return;
            }

            alias       = source.alias;
            description = source.description;
            port        = source.port;
            address     = source.address;

            isUseTls    = source.isUseTls;
            tlsType     = source.tlsType;
            tlsServName = source.tlsServName;

            isSecTls     = source.isSecTls;
            streamType   = source.streamType;
            streamParam1 = source.streamParam1;
            streamParam2 = source.streamParam2;
            streamParam3 = source.streamParam3;
        }
Ejemplo n.º 4
0
 public Vless4b(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
Ejemplo n.º 5
0
 public Socks2a(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
Ejemplo n.º 6
0
 public Vmess0a(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
Ejemplo n.º 7
0
 public Http3b(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
Ejemplo n.º 8
0
 public Trojan5c(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
Ejemplo n.º 9
0
 public Ss1c(BasicSettings source) : this()
 {
     CopyFrom(source);
 }