mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-10 02:55:55 +02:00
DNS check: Only use the IPv4 version.
This commit is contained in:
@@ -858,7 +858,7 @@ sub FetchPublicIp {
|
||||
Net::SSLeay::set_proxy($peer,$peerport,$proxysettings{'UPSTREAM_USER'},$proxysettings{'UPSTREAM_PASSWORD'} );
|
||||
}
|
||||
my $user_agent = &MakeUserAgent();
|
||||
my ($out, $response) = Net::SSLeay::get_http( 'checkip.dns.lightningwirelabs.com',
|
||||
my ($out, $response) = Net::SSLeay::get_http( 'checkip4.dns.lightningwirelabs.com',
|
||||
80,
|
||||
"/",
|
||||
Net::SSLeay::make_headers('User-Agent' => $user_agent )
|
||||
|
||||
Reference in New Issue
Block a user