Add support for lnp apitype/URL
[Net-Vitelity.git] / lib / Net / Vitelity.pm
index e0917f1..4409b5b 100644 (file)
@@ -60,7 +60,7 @@ sub AUTOLOAD {
 
   my $url = $URL_API;
   $url = $URL_FAX if $self->{apitype} eq 'fax';
-  $url = $URL_FAX if $self->{apitype} eq 'lnp';
+  $url = $URL_LNP if $self->{apitype} eq 'lnp';
 
   my $response = $ua->post($url, {
                     login => $self->{login},