Skip to content

Commit

Permalink
Merge pull request #843 from mw9/feature/bugfix
Browse files Browse the repository at this point in the history
Bugfix: HTTPSocks.pm - Binary OR used by mistake - Logical OR needed
  • Loading branch information
mherger committed Dec 12, 2022
2 parents d02dc32 + 3c19e28 commit 9d57bcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Slim/Networking/Async/HTTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ sub new_socket {

my %args = @_;

# Failed. Try again with an explicit SNI.
$args{SSL_hostname} //= $args{Host};
$args{SSL_verify_mode} //= Net::SSLeay::VERIFY_NONE() if $prefs->get('insecureHTTPS');

Expand Down
2 changes: 1 addition & 1 deletion Slim/Networking/Async/Socket/HTTPSocks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ sub new {
# change PeerAddr to proxy (no deepcopy needed)
my %params = %args;
$params{PeerAddr} = $args{ProxyAddr};
$params{PeerPort} = $args{ProxyPort} | 1080;
$params{PeerPort} = $args{ProxyPort} || 1080;
$params{Blocking} => 1;

# and connect parent's class to it (better block)
Expand Down

0 comments on commit 9d57bcf

Please sign in to comment.