TT#33107 Revert "TT#32990 validate if hostname or ip is set for peers"

This reverts commit 398edbd273.
we no longer want IPs to be optional

Change-Id: I2019825465a69233b64b255424b4f7e55d07d183
changes/17/19217/1
Gerhard Jungwirth 7 years ago
parent 4feebe3f43
commit 20d6c7b3c0

@ -143,18 +143,12 @@ sub validate_via_route {
$field->add_error("Invalid SIP URI, must be (comma-separated) SIP URI(s) in form sip:ip:port"); $field->add_error("Invalid SIP URI, must be (comma-separated) SIP URI(s) in form sip:ip:port");
} }
} }
#sub validate {
sub validate { # my ($self) = @_;
my ($self) = @_; # my $c = $self->ctx;
# return unless $c;
my $host = $self->value->{host}; # my $model = $c->
my $ip = $self->value->{ip}; #}
if (!$ip && !$host) {
$self->field('host')->add_error("At least one of the fields 'host' or 'ip' have to be present");
}
return;
}
1; 1;
__END__ __END__

Loading…
Cancel
Save