websocket_server default empty XFF header

For some reason, the websocket_server types have been altered to require
an X-Forwarded-For header (???) which seems utterly unnecessary. AFAICT,
it's safe to just leave it empty (BitShares does), so add a default arg
to make it do so by default.
This commit is contained in:
Nathan Hourt 2020-08-21 11:47:14 -05:00
parent 4accfdd951
commit 5b3eb3a355
No known key found for this signature in database
GPG key ID: B4344309A110851E

View file

@ -53,7 +53,7 @@ namespace fc { namespace http {
class websocket_server
{
public:
websocket_server(const std::string& forward_header_key);
websocket_server(const std::string& forward_header_key = std::string());
~websocket_server();
void on_connection( const on_connection_handler& handler);
@ -78,7 +78,7 @@ namespace fc { namespace http {
public:
websocket_tls_server( const std::string& server_pem,
const std::string& ssl_password,
const std::string& forward_header_key );
const std::string& forward_header_key = std::string() );
~websocket_tls_server();
void on_connection( const on_connection_handler& handler);