Browse Source

define default port const for gemini socket client

CPP-GTK4
yggverse 3 months ago
parent
commit
b35f70b1db
  1. 2
      src/app/browser/main/tab/page.cpp
  2. 2
      src/app/browser/main/tab/page.hpp

2
src/app/browser/main/tab/page.cpp

@ -283,7 +283,7 @@ void Page::navigation_reload( @@ -283,7 +283,7 @@ void Page::navigation_reload(
g_uri_to_string(
uri
),
1965, // default port @TODO
Socket::Client::Gemini::DEFAULT_PORT,
[this](const Glib::RefPtr<Gio::AsyncResult> & RESULT)
{
// Update

2
src/app/browser/main/tab/page.hpp

@ -96,6 +96,8 @@ namespace app::browser::main::tab @@ -96,6 +96,8 @@ namespace app::browser::main::tab
struct Gemini
{
static const int DEFAULT_PORT = 1965;
static Glib::RefPtr<Gio::SocketClient> create();
};
};

Loading…
Cancel
Save