mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
policy refactor echo client passes all autobahn tests
This commit is contained in:
11
src/uri.cpp
11
src/uri.cpp
@@ -118,6 +118,17 @@ std::string uri::get_host() const {
|
||||
return m_host;
|
||||
}
|
||||
|
||||
std::string uri::get_host_port() const {
|
||||
if (m_port == (m_secure ? DEFAULT_SECURE_PORT : DEFAULT_PORT)) {
|
||||
return m_host;
|
||||
} else {
|
||||
std::stringstream p;
|
||||
p << m_host << ":" << m_port;
|
||||
return p.str();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
uint16_t uri::get_port() const {
|
||||
return m_port;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user