mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
make use of base-64 encoding runtime-configurable
This commit is contained in:
parent
407a82322c
commit
9e67dda5a9
2 changed files with 8 additions and 2 deletions
|
@ -62,8 +62,9 @@ DBMgr::Get()
|
|||
|
||||
DBMgr::DBMgr()
|
||||
{
|
||||
logf( XW_LOGINFO, "%s called", __func__ );
|
||||
m_useB64 = false;
|
||||
int tmp;
|
||||
RelayConfigs::GetConfigs()->GetValueFor( "USE_B64", &tmp );
|
||||
m_useB64 = tmp != 0;
|
||||
|
||||
pthread_key_create( &m_conn_key, destr_function );
|
||||
|
||||
|
|
|
@ -63,3 +63,8 @@ LOGFILE_PATH=./xwrelay.log
|
|||
# Delay sending packets so devices/emulators on the same machine as
|
||||
# relay have a bit more natural experience
|
||||
# SEND_DELAY_MILLIS=500
|
||||
|
||||
# Use base64 encoding rather than PQescapeByteaConn for stored
|
||||
# messages. The latter doesn't seem as reliable with newer psql
|
||||
# servers. Anything but 0 is treated as true.
|
||||
USE_B64=1
|
||||
|
|
Loading…
Reference in a new issue