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:
parent
4accfdd951
commit
5b3eb3a355
1 changed files with 2 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ namespace fc { namespace http {
|
||||||
class websocket_server
|
class websocket_server
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
websocket_server(const std::string& forward_header_key);
|
websocket_server(const std::string& forward_header_key = std::string());
|
||||||
~websocket_server();
|
~websocket_server();
|
||||||
|
|
||||||
void on_connection( const on_connection_handler& handler);
|
void on_connection( const on_connection_handler& handler);
|
||||||
|
|
@ -78,7 +78,7 @@ namespace fc { namespace http {
|
||||||
public:
|
public:
|
||||||
websocket_tls_server( const std::string& server_pem,
|
websocket_tls_server( const std::string& server_pem,
|
||||||
const std::string& ssl_password,
|
const std::string& ssl_password,
|
||||||
const std::string& forward_header_key );
|
const std::string& forward_header_key = std::string() );
|
||||||
~websocket_tls_server();
|
~websocket_tls_server();
|
||||||
|
|
||||||
void on_connection( const on_connection_handler& handler);
|
void on_connection( const on_connection_handler& handler);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue