more-widely-known-portal.patch 989 B

1234567891011121314151617181920212223242526272829
  1. From 018bcb5824a956409baef6cf68a8469a6c0e8c1b Mon Sep 17 00:00:00 2001
  2. From: Bahar Kurt <kurtbahartr@users.noreply.github.com>
  3. Date: Tue, 22 Oct 2024 12:10:52 +0300
  4. Subject: [PATCH] Change captive portal detection URL to something known more
  5. widely
  6. ---
  7. src/MainWindow.vala | 4 +++-
  8. 1 file changed, 3 insertions(+), 1 deletion(-)
  9. diff --git a/src/MainWindow.vala b/src/MainWindow.vala
  10. index a125814..c410eeb 100644
  11. --- a/src/MainWindow.vala
  12. +++ b/src/MainWindow.vala
  13. @@ -19,7 +19,9 @@
  14. */
  15. public class Captive.MainWindow : Gtk.ApplicationWindow {
  16. - private const string DUMMY_URL = "http://capnet.elementary.io";
  17. + // This was elementaryOS' own capnet server, which isn't acknowledged by networks like universities.
  18. + // As a quick workaround, we can use a more widely acknowledged server, like Google's.
  19. + private const string DUMMY_URL = "http://gstatic.com/generate_204";
  20. private Adw.TabView tabview;
  21. private Granite.HeaderLabel cert_subject;
  22. --
  23. 2.46.2