jackpoz
096cb6bf00
Core/Auth: Fix Auth failing sometimes
...
Fix a database race condition between authserver saving session key to database asynchronously and worldserver reading it; session key is now saved synchronously.
2013-11-16 23:25:21 +01:00
Spp
94e2b9332a
Core/Logging: Remove LOG_FILTER_XXX defines with it's value (remember logger names are case-sensitive)
2013-11-08 10:50:51 +01:00
Spp
1b04bec290
Core/Logs: Create default set of loggers and Appender if the config is wrong.
...
- Logger root (Error)
- Logger server (Info)
- Appender Console
Logger names are case-sensitive, Appender names are not.
2013-11-08 08:55:10 +01:00
Spp
8aa9745c4c
Core/Logging: Extend logging system to allow inheritance of loggers
...
- Changed default loggers and appenders
- '.' determines the relation between loggers ("type.subtype" inherits "type" logger setting if logger "type.subtype" is not defined)
- When core logs a message it search for the correct logger (root is the default one)
ie: a message logged with "type.subtype"
* Core will try to find a logger with name "type.subtype", if its not found then will search for "type", again if its not found it will return the default one "root"
2013-11-07 16:34:44 +01:00
leguybrush
0a308144a8
Core/Code: Unify [more] codestyle for brackets: )\n{\n} to ) { }.
2013-10-28 14:36:07 -04:00
Ascathor
2607738990
Core/Code: Unify codestyle for brackets: {} to { }.
...
Also added missing copyright to some files.
2013-10-27 23:46:02 +01:00
jackpoz
03657525ad
Core/Auth: Mitigate DoS attacks to authserver
...
Mitigate DoS attacks to authserver like "Wow Auth Flooder.exe" by allowing a finite number of AUTH_LOGON_CHALLEGE packets in a row from same socket, 3 sounds like a reasonable limit.
2013-10-05 13:10:06 +02:00
Sebastian Valle
07d793b94b
Core/Misc: Fixed some more issues found by static code analysis tools.
2013-09-03 17:31:02 -05:00
Chaplain
aa8bfeec4f
Auth/Misc: Code cleanup.
...
*Random performance optimizations
2013-09-02 19:40:31 +03:00
Nay
3e2f037b20
Core&Tools: Fix warnings and non-pch build
2013-08-25 14:27:40 +01:00
raczman
ba22baebbd
Core/Auth: Implement time-based token for user login as described in RFC 6238.
...
New column in account table is a base32 of token key bytes,
coincidentally it is the same format Google's Authenticator Android app uses.
If you want that to work, set system time on server correctly and use ntpd.
Closes #10527
Signed-off-by: Nay <dnpd.dd@gmail.com >
2013-08-25 14:02:40 +01:00
QAston
2a3370929d
Fix BigNumber::AsByteArray function by returning Auto_Ptr.
...
Remove mutex from BigNumber class - it didn't do what it was advertised to do - consider using the "locked" array outside of the function in which it was "locked".
2013-08-18 17:44:03 +02:00
Nay
a7d876e8b5
Config: Change ProcessPriority default to 0 (Normal)
...
On Linux, superuser (root) is required to set a process high priority and we shouldn't force that.
(It's already set to 0 (Normal) in worldserver\Master.cpp and authserver\Main.cpp)
2013-07-30 15:34:38 +01:00
Nay
1bb3c4a2b4
Misc: Fix warnings and build
...
Closes #10396
2013-07-29 14:24:53 +01:00
Nay
3330239a02
Servers: Fix typo
2013-07-28 20:12:06 +01:00
Nay
e3f7be12ef
Servers: Enable UseProcessors and ProcessPriority settings to be used on Linux
2013-07-28 18:58:12 +01:00
Nay
f71d894a21
Servers: Fix some code style issues in world and authserver
2013-07-28 16:59:07 +01:00
Shauren
779a59e7e2
Core/Config: Refactored ConfigMgr
...
* Loading initial configuration files is now separate from loading any additional custom configs
2013-07-15 17:31:44 +02:00
Shauren
b38025d96e
Missed change in previous commit
2013-06-15 14:22:16 +02:00
Shauren
3c91c04758
Buildsystem/MSVC
...
* Fixed ACE PCH
* Removed WheatyExceptionReport sources from shared project
2013-06-15 14:07:12 +02:00
Spp
9664c0ab5c
Core/Misc: Another batch of fixes for issues found by static analysis
2013-05-30 13:18:29 +02:00
Aokromes
1cec36790c
Merge pull request #9822 from wowpsp/master
...
Support 1.12.3 (build 6141)
2013-05-21 09:46:31 -07:00
Spp
d3c2af0f66
Core/Build: Fix compile under Ubuntu 13.04 and openSUSE 12.3 (and probably other new distros)
...
Closes #9832
Closes #9740
2013-05-21 08:36:52 +02:00
wowpsp
529e8fba82
support 1.12.3 (build 6141)
2013-05-18 22:03:18 +08:00
Spp
d1677b2db0
Core/Logging: Performance-related tweaks to logging system
...
All sLog->out* functions (except outCommand atm) are replaced with TC_LOG_* macros.
Memleak fix
2013-05-13 15:07:36 +02:00
Bezo
7542049eba
[Ip2nationLock] Implement the ip2nation lock country.
2013-04-22 15:53:48 +02:00
click
7afe928f2a
Core/Buildsystem: Actually follow CONF_DIR path-directive when installing configuration-files on UNIX
...
Fixes issue #9649
2013-04-14 14:35:45 +02:00
Shauren
4c8ff6e6a3
Core/Auth: Updated AuthResult enum
2013-03-22 19:55:01 +01:00
WyldePointer
47f7687bab
Core: Remove unnecessary commas
...
Last element of enumerator does not need comma after it's value.
Closes #9367
2013-03-09 15:20:57 +00:00
Nay
c7463c5f6c
Buildsystem: Add support for compiling with MinGW on Windows
...
Tested with:
- Windows 8 x64
- MySQL 5.5.30 win32
- OpenSSL 1.0.1c (32 bits)
- No PCH
- MinGW with GCC 4.7.0
TODO:
- Fix compile/link with PCH enabled
- Fix compile with WheatyExceptonionReport enabled (ignored for now)
- Fix compile of .rc files (ignored for now)
- Test with more platforms
2013-03-09 00:12:50 +00:00
Nay
db0b81e8e7
Core/RealmSocket: Remove a not required #ifndef MSG_NOSIGNAL / #define MSG_NOSIGNAL 0
...
Somewhere in ACE overloads of send(), flags are default'ed to 0 if not provided
2013-02-11 03:33:02 +00:00
Nay
42e660e2a2
Core/Sockets: Always try to send MSG_NOSIGNAL in peer().send()
...
Fixes RASocket::authenticate crash
"MSG_NOSIGNAL:
If you send() to a remote host which is no longer recv()ing, you'll typically get the signal SIGPIPE. Adding this flag prevents that signal from being raised."
Closes #5040
Thanks to @derex for the hint
2013-02-11 02:59:37 +00:00
Shauren
b6e56e42ea
Core/Auth: Reverted part of fb43a92cc2 - session key is still needed after logging in to be able to switch realms
2013-02-08 01:03:56 +01:00
Shauren
6e80357f8e
Core/Authserver: Added possibility to allow realm connections both from "world" and local networks.
2013-01-27 17:33:01 +01:00
Spp
23b6a6a7cd
Core/Log: Rotate logs when maximum size is exceeded, backup name will be "filename".datetime
...
- This is an addition to 39c2d89
2013-01-24 12:44:58 +01:00
Spp
be3826825e
Core/Logging: Use correct realmId when logging to DB
2013-01-16 08:59:56 +01:00
Spp
802657250c
Core/Misc: Apply codestyle to multiple files
2013-01-14 09:50:59 +01:00
Vincent_Michael
cc65aba789
Update copyright note for 2013.
...
Happy new year.
2013-01-01 00:41:01 +01:00
Spp
2251d1bfae
Core/Misc: Set mode 0644 for files
2012-11-27 13:03:12 +01:00
Shauren
02aae2858b
Core/Authserver: Always send realm address to clients in dotted ip format.
2012-11-27 11:30:48 +01:00
Spp
333b8e5159
Core/Build: Enable Clang PCH support and OS X specific features
...
Core: Fix warnings here and there
2012-11-09 13:13:45 +01:00
Spp
1e50a08604
Core/Logging: Fix PlayerDump logging
2012-10-22 10:37:39 +02:00
ZxBiohazardZx
3aa586986f
Core/Codestyle: some small improvements for Doxygen Purposes
2012-10-02 23:20:03 +02:00
Spp
358c6a26d6
Core: Warning fixes (Also some -pedantic under game folder)
2012-09-10 13:04:31 +02:00
Nay
d0e1a6d742
Core/Authsocket: Correct field types for an account_banned related query
...
Thanks @Tuxity
Closes #6373
Closes #7511
2012-09-08 00:42:00 +01:00
Spp
b127610510
Config: Cosmetic changes to fit config guidelines
2012-09-01 21:24:09 +02:00
Nay
abbb896cfb
Core: Fix many "errors"/warnings and coding style (2)
...
Scripts; also reverted a change to AuthSocket
Errors were found using Cppcheck, open-source static analysis tool
2012-08-30 22:44:03 +01:00
Nay
5f1977cb1d
Core: Fix many "errors"/warnings and coding style (1)
...
Extractors, worldserver, authserver, shared and collision affected
Errors were found using Cppcheck, open-source static analysis tool
2012-08-30 19:07:59 +01:00
Nay
b89b8ff277
Core/Loading: Change info/error messages to printf when config is not loaded
2012-08-29 20:02:55 +01:00
Nay
154aaa0ad5
Core/Quests: Fix quest honor reward
...
Based on the patch of Tassader
Closes #1356
2012-08-28 00:25:49 +01:00