* set different "conf" path for Windows and Linux

* allow all clients by default in Windows config, and more detailed loglevel
This commit is contained in:
HarpyWar 2014-07-04 00:58:20 +04:00
parent 3074a6a992
commit db8b9b1aa0
2 changed files with 12 additions and 6 deletions

View file

@ -24,9 +24,15 @@ set(LOCALSTATEDIR ${LOCALSTATE_INSTALL_DIR})
set(MANDIR ${MAN_INSTALL_DIR})
# set default hardcoded config paths
set(BNETD_DEFAULT_CONF_FILE "${SYSCONFDIR}/bnetd.conf")
set(D2CS_DEFAULT_CONF_FILE "${SYSCONFDIR}/d2cs.conf")
set(D2DBS_DEFAULT_CONF_FILE "${SYSCONFDIR}/d2dbs.conf")
if(WIN32)
set(BNETD_DEFAULT_CONF_FILE "conf/bnetd.conf")
set(D2CS_DEFAULT_CONF_FILE "conf/d2cs.conf")
set(D2DBS_DEFAULT_CONF_FILE "conf/d2dbs.conf")
else(WIN32)
set(BNETD_DEFAULT_CONF_FILE "${SYSCONFDIR}/bnetd.conf")
set(D2CS_DEFAULT_CONF_FILE "${SYSCONFDIR}/d2cs.conf")
set(D2DBS_DEFAULT_CONF_FILE "${SYSCONFDIR}/d2dbs.conf")
endif(WIN32)
# library checks
find_package(ZLIB REQUIRED)

View file

@ -124,7 +124,7 @@ tosfile = termsofservice.txt
# error
# fatal
#loglevels = fatal,error,warn,info,debug,trace
loglevels = fatal,error
loglevels = fatal,error,warn,info
# #
##############################################################################
@ -202,11 +202,11 @@ allowed_clients = all
# than 109. Starting with version 109 the clients will always do version
# checking since they do not function properly if the server does not
# request it.
skip_versioncheck = false
skip_versioncheck = true
# If you enable the version checks but want to allow clients that don't pass
# the checksum test then enable this.
allow_bad_version = false
allow_bad_version = true
# If you enable the version checks but want to allow clients that aren't
# listed in the versioncheck configuration file then enable this. Unless