chenxy 6 yıl önce
ebeveyn
işleme
8c4b839931
1 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. 8 8
      WCF.Service/WCF.Hosting/ConfigMain.cs

+ 8 - 8
WCF.Service/WCF.Hosting/ConfigMain.cs

@@ -359,14 +359,14 @@ namespace Dongke.IBOSS.PRD.WCF.Hosting
                 return;
             }
 
-            string strIpRegEdp = @"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$";
-            Regex regEdpIP = new Regex(strIpRegEdp, RegexOptions.None);
-            if (!regEdpIP.IsMatch(this.txtDBIP.Text.Trim()))
-            {
-                MessageBox.Show("数据库IP地址不符合IP规则!");
-                this.txtDBIP.Focus();
-                return;
-            }
+            //string strIpRegEdp = @"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$";
+            //Regex regEdpIP = new Regex(strIpRegEdp, RegexOptions.None);
+            //if (!regEdpIP.IsMatch(this.txtDBIP.Text.Trim()))
+            //{
+            //    MessageBox.Show("数据库IP地址不符合IP规则!");
+            //    this.txtDBIP.Focus();
+            //    return;
+            //}
             #endregion
 
             // 连接串