summarylogtreecommitdiffstats
path: root/https-by-default.patch
blob: 3ae079489b2e8f52d9feb13cd4530f53d767a5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit a6bf0fe8d243bb7637410985dac6dfee42f56ff7
Author: T.J. Townsend <blakkheim@archlinux.org>
Date:   Sun Oct 9 22:51:53 2022 -0400

    Fetch modules over HTTPS instead of FTP by default.

diff --git a/src/backend/module_manager.cc b/src/backend/module_manager.cc
index 1b53a601..b0b3b0e0 100644
--- a/src/backend/module_manager.cc
+++ b/src/backend/module_manager.cc
@@ -554,13 +554,13 @@ void backend_init_module_mgr_config(void)
 
 	SWConfig config(confPath.c_str());
 
-	InstallSource is("FTP");
+	InstallSource is("HTTPS");
 	is.caption = "CrossWire";
-	is.source = "ftp.crosswire.org";
-	is.directory = "/pub/sword/raw";
+	is.source = "www.crosswire.org";
+	is.directory = "/ftpmirror/pub/sword/raw";
 
 	config["General"]["PassiveFTP"] = "true";
-	config["Sources"]["FTPSource"] = is.getConfEnt();
+	config["Sources"]["HTTPSSource"] = is.getConfEnt();
 	config.save();
 
 	InstallSource is_local("DIR");