[freeside-commits] branch FREESIDE_4_BRANCH updated. 3348a49e629d38a680b87d82a09babda1dfaf06f
Mark Wells
mark at 420.am
Mon Aug 22 11:49:22 PDT 2016
The branch, FREESIDE_4_BRANCH has been updated
via 3348a49e629d38a680b87d82a09babda1dfaf06f (commit)
from 0185697720bf840d90ada1b8149d8057197acea7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3348a49e629d38a680b87d82a09babda1dfaf06f
Author: Mark Wells <mark at freeside.biz>
Date: Mon Aug 22 11:48:11 2016 -0700
relax SSL verification on LRN lookup, #71955
Conflicts:
FS/FS/cdr.pm
diff --git a/FS/FS/cdr.pm b/FS/FS/cdr.pm
index 155090d..c61a7b3 100644
--- a/FS/FS/cdr.pm
+++ b/FS/FS/cdr.pm
@@ -28,6 +28,7 @@ use FS::rate_detail;
# LRN lookup
use LWP::UserAgent;
use HTTP::Request::Common qw(POST);
+use IO::Socket::SSL;
use Cpanel::JSON::XS qw(decode_json);
@ISA = qw(FS::Record);
@@ -1498,7 +1499,13 @@ sub get_lrn {
my $self = shift;
my $field = shift;
- my $ua = LWP::UserAgent->new;
+ my $ua = LWP::UserAgent->new(
+ 'ssl_opts' => {
+ verify_hostname => 0,
+ SSL_verify_mode => IO::Socket::SSL::SSL_VERIFY_NONE,
+ },
+ );
+
my $url = 'https://ws.freeside.biz/get_lrn';
my %content = ( 'support-key' => $support_key,
-----------------------------------------------------------------------
Summary of changes:
FS/FS/cdr.pm | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list