|
|
@@ -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
|
|
|
|
|
|
// 连接串
|