Skip to content

Commit

Permalink
Follow up to 9d247d8
Browse files Browse the repository at this point in the history
* Disable Packet Obfuscation if it's enabled and client version is below 2011-08-17.
  • Loading branch information
aleos89 committed Mar 14, 2015
1 parent 5a9ffc4 commit bae469e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/mmo.h
Expand Up @@ -828,7 +828,7 @@ enum bound_type {

#ifdef PACKET_OBFUSCATION
#if PACKETVER < 20110817
#error core.h::PACKET_OBFUSCATION is enabled, it requires PACKETVER 20110817 or newer
#undef PACKET_OBFUSCATION

This comment has been minimized.

Copy link
@Lemongrass3110

Lemongrass3110 Mar 15, 2015

Member

Do we really want this to happen silently?

This comment has been minimized.

Copy link
@cydh

cydh Mar 15, 2015

Contributor

we told them already :v disabled for below 20110817, we aren't silent at all.

This comment has been minimized.

Copy link
@aleos89

aleos89 Mar 15, 2015

Author Contributor

If I left the error there it would stop the compile process which leaves the undef after the error message useless.

#endif
#endif

Expand Down
1 change: 1 addition & 0 deletions src/config/core.h
Expand Up @@ -96,6 +96,7 @@
/// Comment to disable the official packet obfuscation support.
/// When enabled, make sure there is value for 'packet_keys' of used packet version or
/// defined 'packet_keys_use' in db/[import/]packet_db.txt.
/// This requires PACKETVER 2011-08-17 or newer.
#define PACKET_OBFUSCATION

/**
Expand Down

0 comments on commit bae469e

Please sign in to comment.