예제 #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Mark != 0)
            {
                hash ^= Mark.GetHashCode();
            }
            if (Tfo != 0)
            {
                hash ^= Tfo.GetHashCode();
            }
            if (Tproxy != 0)
            {
                hash ^= Tproxy.GetHashCode();
            }
            if (ReceiveOriginalDestAddress != false)
            {
                hash ^= ReceiveOriginalDestAddress.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Mark != 0)
            {
                hash ^= Mark.GetHashCode();
            }
            if (Tfo != global::V2Ray.Core.Transport.Internet.SocketConfig.Types.TCPFastOpenState.AsIs)
            {
                hash ^= Tfo.GetHashCode();
            }
            if (Tproxy != global::V2Ray.Core.Transport.Internet.SocketConfig.Types.TProxyMode.Off)
            {
                hash ^= Tproxy.GetHashCode();
            }
            if (ReceiveOriginalDestAddress != false)
            {
                hash ^= ReceiveOriginalDestAddress.GetHashCode();
            }
            if (BindAddress.Length != 0)
            {
                hash ^= BindAddress.GetHashCode();
            }
            if (BindPort != 0)
            {
                hash ^= BindPort.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }