MFH: r499741
Fix METAR data download PR: 237400 Submitted by: russo@bogodyn.org Approved by: portmgr (miwi)
This commit is contained in:
parent
3094b4b5d7
commit
b6440305ca
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=499828
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= flightgear
|
||||
PORTVERSION= 2018.3.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= games
|
||||
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