Fix METAR data download
PR: 237400 Submitted by: russo@bogodyn.org MFH: 2019Q2
This commit is contained in:
parent
95d56bc092
commit
bfc04bf69f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499741
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
PORTNAME= flightgear
|
PORTNAME= flightgear
|
||||||
PORTVERSION= 2018.3.2
|
PORTVERSION= 2018.3.2
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= games
|
CATEGORIES= games
|
||||||
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
|
MASTER_SITES= SF/flightgear/release-${PORTVERSION:R}
|
||||||
|
|
||||||
|
@ -0,0 +1,14 @@
|
|||||||
|
# games/flightgear: METAR data won't download
|
||||||
|
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
|
||||||
|
|
||||||
|
--- src/Environment/realwx_ctrl.cxx.orig 2019-04-20 07:47:41 UTC
|
||||||
|
+++ src/Environment/realwx_ctrl.cxx
|
||||||
|
@@ -426,7 +426,7 @@ void NoaaMetarRealWxController::requestMetar
|
||||||
|
)
|
||||||
|
{
|
||||||
|
static const std::string NOAA_BASE_URL =
|
||||||
|
- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
|
||||||
|
+ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
|
||||||
|
class NoaaMetarGetRequest:
|
||||||
|
public simgear::HTTP::MemoryRequest
|
||||||
|
{
|
14
games/flightgear/files/patch-src_Main_metar__main.cxx
Normal file
14
games/flightgear/files/patch-src_Main_metar__main.cxx
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# games/flightgear: METAR data won't download
|
||||||
|
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237400
|
||||||
|
|
||||||
|
--- src/Main/metar_main.cxx.orig 2019-04-20 07:48:18 UTC
|
||||||
|
+++ src/Main/metar_main.cxx
|
||||||
|
@@ -539,7 +539,7 @@ int main(int argc, char *argv[])
|
||||||
|
try
|
||||||
|
{
|
||||||
|
static const std::string NOAA_BASE_URL =
|
||||||
|
- "http://tgftp.nws.noaa.gov/data/observations/metar/stations/";
|
||||||
|
+ "https://tgftp.nws.noaa.gov/data/observations/metar/stations/";
|
||||||
|
HTTP::MemoryRequest* mr = new HTTP::MemoryRequest
|
||||||
|
(
|
||||||
|
NOAA_BASE_URL
|
Loading…
Reference in New Issue
Block a user