Esempio n. 1
0
 /// <summary>
 /// 删除HTTPS的URL监听保留
 /// </summary>
 /// <param name="listenerUrls"></param>
 public static void DeleteUrlAcl(IEnumerable <string> listenerUrls)
 {
     foreach (var url in listenerUrls)
     {
         HttpApiUrlAcl.DeleteReserveURL(url);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// 注册HTTPS的URL监听保留
        /// </summary>
        /// <param name="listenerUrls"></param>
        public static void AddUrlAcl(IEnumerable <string> listenerUrls)
        {
            // 测试命令: netsh http show urlacl

            foreach (var url in listenerUrls)
            {
                // ms-help://MS.MSDNQTR.v90.chs/http/http/http_service_config_urlacl_param.htm

                // S-1-1-0 , Everyone
                HttpApiUrlAcl.ReserveURL(url, "D:(A;;GA;;;S-1-1-0)");
            }
        }