define default port const for gemini socket client

This commit is contained in:
yggverse 2024-09-16 11:17:22 +03:00
parent a342940d2c
commit b35f70b1db
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

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