mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
ids-functions.pl: Re-order download request handler creation.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
@@ -382,13 +382,13 @@ sub downloadruleset ($) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
# Pass the requested URL to the downloader.
|
||||
my $request = HTTP::Request->new(GET => $url);
|
||||
|
||||
# Generate temporary file name, located in "/var/tmp" and with a suffix of ".tmp".
|
||||
my $tmp = File::Temp->new( SUFFIX => ".tmp", DIR => "/var/tmp/", UNLINK => 0 );
|
||||
my $tmpfile = $tmp->filename();
|
||||
|
||||
# Pass the requested url to the downloader.
|
||||
my $request = HTTP::Request->new(GET => $url);
|
||||
|
||||
my $dl_attempt = 1;
|
||||
my $response;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user