예제 #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);
 }
예제 #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;
        }
예제 #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;
        }
예제 #4
0
 public Vless4b(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
예제 #5
0
 public Socks2a(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
예제 #6
0
 public Vmess0a(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
예제 #7
0
 public Http3b(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
예제 #8
0
 public Trojan5c(BasicSettings source) : this()
 {
     CopyFrom(source);
 }
예제 #9
0
파일: Ss1c.cs 프로젝트: vrnobody/V2RayGCon
 public Ss1c(BasicSettings source) : this()
 {
     CopyFrom(source);
 }