mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add support for Beast Websockets (RIPD-1097)
This commit is contained in:
committed by
Howard Hinnant
parent
f45e279e06
commit
d7a778ce6a
@@ -23,6 +23,7 @@
|
||||
|
||||
namespace ripple {
|
||||
|
||||
// Detects legacy websockets only.
|
||||
bool
|
||||
Port::websockets() const
|
||||
{
|
||||
@@ -33,7 +34,9 @@ bool
|
||||
Port::secure() const
|
||||
{
|
||||
return protocol.count("peer") > 0 ||
|
||||
protocol.count("https") > 0 || protocol.count("wss") > 0;
|
||||
protocol.count("https") > 0 ||
|
||||
protocol.count("wss") > 0 ||
|
||||
protocol.count("wss2") > 0;
|
||||
}
|
||||
|
||||
std::string
|
||||
|
||||
Reference in New Issue
Block a user