|
@@ -428,6 +428,8 @@ public class ConnectServerFragment extends BaseFragment implements View.OnClickL
|
|
|
String ip = ipEditText.getText().toString().trim();
|
|
String ip = ipEditText.getText().toString().trim();
|
|
|
//判断是否是正确的IP地址
|
|
//判断是否是正确的IP地址
|
|
|
boolean ipRight = RegexUtil.checkString(ip, RegexUtil.IP_FORMAT);
|
|
boolean ipRight = RegexUtil.checkString(ip, RegexUtil.IP_FORMAT);
|
|
|
|
|
+ //地址判断放开,有些客户的地址不是IP格式
|
|
|
|
|
+ ipRight = true;
|
|
|
if (!ipRight) {
|
|
if (!ipRight) {
|
|
|
//IP不正确,文字变红
|
|
//IP不正确,文字变红
|
|
|
ipEditText.setTextColor(getResources().getColor(R.color.red));
|
|
ipEditText.setTextColor(getResources().getColor(R.color.red));
|