Skip to content
Snippets Groups Projects
Verified Commit a3fec0ae authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Allow querying a reusable server url for the current server

parent e1b75074
No related branches found
No related tags found
No related merge requests found
Pipeline #2773 failed
......@@ -213,6 +213,11 @@ public:
void set_server(const std::string &server);
//! Retrieve the homeserver domain name.
std::string server() { return server_; };
//! Retrieve the full server url including protocol and ports
std::string server_url()
{
return protocol_ + "://" + server() + ":" + std::to_string(port());
};
//! Set the homeserver port.
void set_port(uint16_t port) { port_ = port; };
//! Retrieve the homeserver port.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment