소스 검색

Deal with new defaults in LWP

Zachary Kotlarek 14 년 전
부모
커밋
8ec185b103
2개의 변경된 파일과 4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      Fetch.pm
  2. 1 1
      findTorrent.pl

+ 3 - 0
Fetch.pm

@@ -161,6 +161,9 @@ sub init_ua() {
 		);
 		);
 		$self->{'ua'}->cookie_jar($self->{'cookies'});
 		$self->{'ua'}->cookie_jar($self->{'cookies'});
 	}
 	}
+
+	# Disable SSL hostname verification
+	$self->{'ua'}->ssl_opts('verify_hostname' => 0);
 }
 }
 
 
 #----------------------------------------------------------------------
 #----------------------------------------------------------------------

+ 1 - 1
findTorrent.pl

@@ -60,7 +60,7 @@ my %SOURCES = ();
 if ($ENABLE_SOURCE{'TPB'}) {
 if ($ENABLE_SOURCE{'TPB'}) {
 
 
 	# Available TPB proxies, in order of preference
 	# Available TPB proxies, in order of preference
-	my @TPBs = ('thepiratebay.se/search/', 'tpb.jasohack.com/index.php?loadurl=/search/', 'http://tpb.allestec.com/index.php?loadurl=/search/');
+	my @TPBs = ('thepiratebay.se/search/', 'tpb.jasohack.com/index.php?loadurl=/search/', 'tpb.allestec.com/index.php?loadurl=/search/');
 
 
 	# Automatically select a TPB proxy that returns a search page
 	# Automatically select a TPB proxy that returns a search page
 	my $search_url = '';
 	my $search_url = '';