示例#1
0
 /// <summary>
 /// Does IPTables support SYNPROXY
 /// </summary>
 /// <param name="adapter"></param>
 /// <returns></returns>
 public static bool IptablesSupported(IIPTablesAdapterClient adapter)
 {
     var iptablesVersion = adapter.GetIptablesVersion();
     if (iptablesVersion >= new Version(1, 4, 21))
     {
         return true;
     }
     return false;
 }
示例#2
0
        /// <summary>
        /// Does IPTables support SYNPROXY
        /// </summary>
        /// <param name="adapter"></param>
        /// <returns></returns>
        public static bool IptablesSupported(IIPTablesAdapterClient adapter)
        {
            var iptablesVersion = adapter.GetIptablesVersion();

            if (iptablesVersion >= new Version(1, 4, 21))
            {
                return(true);
            }
            return(false);
        }