Skip to content

Commit

Permalink
Windows with Hyper-V enabled and using dual stack seem to confuse LWP…
Browse files Browse the repository at this point in the history
…::UserAgent. Make sure it's sticking to the IPv4 stack.
  • Loading branch information
michaelherger committed Nov 3, 2024
1 parent a1719ae commit fd36b36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Slim/Utils/OS/Win64.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,17 @@ use strict;

use File::Spec::Functions qw(catdir);
use FindBin qw($Bin);
use IO::Socket::IP;
use Win32::Daemon;

use base qw(Slim::Utils::OS::Win32);

use constant RESTART_STATUS => 42;

# Make sure we use the ipv4 stack in LWP::UserAgent
# https://github.com/libwww-perl/libwww-perl/issues/345
@LWP::Protocol::http::EXTRA_SOCK_OPTS = ( Family => AF_INET );

my $log;

sub initDetails {
Expand Down

0 comments on commit fd36b36

Please sign in to comment.