mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds the ability to get the absolute authority of a uri
This commit is contained in:
@@ -204,6 +204,12 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
std::string get_authority() const {
|
||||
std::stringstream p;
|
||||
p << m_host << ":" << m_port;
|
||||
return p.str();
|
||||
}
|
||||
|
||||
uint16_t get_port() const {
|
||||
return m_port;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user