Add PROXY peer listener and consolidate SSL contexts.

This commit is contained in:
Vinnie Falco
2013-08-25 00:11:04 -07:00
parent 3602e19dcd
commit 4170bcd294
34 changed files with 947 additions and 832 deletions

View File

@@ -85,6 +85,8 @@ public:
boost::filesystem::path DEBUG_LOGFILE;
boost::filesystem::path VALIDATORS_FILE; // As specifed in rippled.cfg.
//--------------------------------------------------------------------------
/** Parameters for the main NodeStore database.
This is 1 or more strings of the form <key>=<value>
@@ -119,6 +121,10 @@ public:
*/
StringPairArray importNodeDatabase;
// Listening port number for peer connections.
//
int peerListeningPort;
/** PROXY listening port number
If this is not zero, it indicates an additional port number on
which we should accept incoming Peer connections that will also
@@ -127,7 +133,9 @@ public:
The PROXY Protocol:
http://haproxy.1wt.eu/download/1.5/doc/proxy-protocol.txt
*/
int proxyListeningPort;
int peerPROXYListeningPort;
//--------------------------------------------------------------------------
bool ELB_SUPPORT; // Support Amazon ELB
@@ -180,7 +188,6 @@ public:
// Peer networking parameters
std::string PEER_IP;
int PEER_PORT;
int NUMBER_CONNECTIONS;
std::string PEER_SSL_CIPHER_LIST;
int PEER_SCAN_INTERVAL_MIN;