Allow hostnames on ip or domain
This commit is contained in:
@@ -49,7 +49,7 @@ class Connect extends _$Connect {
|
|||||||
|
|
||||||
void validateIpDomain(String value) {
|
void validateIpDomain(String value) {
|
||||||
state.testConnection = null;
|
state.testConnection = null;
|
||||||
if (Regexps.ipAddress.hasMatch(value) || Regexps.domain.hasMatch(value)) {
|
if (value != "") {
|
||||||
state.ipDomainError = null;
|
state.ipDomainError = null;
|
||||||
} else {
|
} else {
|
||||||
state.ipDomainError = t.onboarding.invalidIpDomain;
|
state.ipDomainError = t.onboarding.invalidIpDomain;
|
||||||
|
|||||||
Reference in New Issue
Block a user