mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
connection socket policies now provide is_secure method
This commit is contained in:
@@ -64,6 +64,10 @@ public:
|
||||
boost::asio::ip::tcp::socket& get_socket() {
|
||||
return m_socket;
|
||||
}
|
||||
|
||||
bool is_secure() {
|
||||
return false;
|
||||
}
|
||||
protected:
|
||||
connection(plain<endpoint_type>& e) : m_socket(e.get_io_service()) {}
|
||||
|
||||
|
||||
@@ -83,6 +83,10 @@ public:
|
||||
ssl_socket& get_socket() {
|
||||
return *m_socket_ptr;
|
||||
}
|
||||
|
||||
bool is_secure() {
|
||||
return true;
|
||||
}
|
||||
protected:
|
||||
connection(ssl<endpoint_type>& e)
|
||||
: m_endpoint(e),
|
||||
|
||||
Reference in New Issue
Block a user