Commit d41ac7b6 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Use new is_valid IP functions

- Robert Anderson <randerson@lbsd.net>
parent f15cde9c
......@@ -260,7 +260,7 @@ sub protocol_validate {
# Check params
if (!awit::netip::is_valid($request->{'client_address'})) {
if (!awitpt::netip::is_valid($request->{'client_address'})) {
my $client_address = defined($request->{'client_address'}) ? "'".$request->{'client_address'}."'" : "undef";
$server->log(LOG_DEBUG,"[PROTOCOLS/Bizanga] Error, parameter 'client_address' cannot be $client_address") if ($log);
return "Required parameter 'client_address' was not found or invalid format";
......
......@@ -237,7 +237,7 @@ sub protocol_validate {
return "required parameter 'protocol_state' was not found";
}
if (!awit::netip::is_valid($request->{'client_address'})) {
if (!awitpt::netip::is_valid($request->{'client_address'})) {
my $client_address = defined($request->{'client_address'}) ? "'".$request->{'client_address'}."'" : "undef";
$server->log(LOG_ERR,"[PROTOCOLS/Postfix] Error, parameter 'client_address' cannot be $client_address") if ($log);
return "required parameter 'client_address' was not found or invalid format";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment