made compression scheme name accessible even if not compiled

This commit is contained in:
Logan007 2020-09-10 14:08:08 +05:45
parent 07b675bae6
commit 7a06bf39db

View File

@ -58,10 +58,8 @@
#define N2N_COMPRESSION_ID_INVALID 0
#define N2N_COMPRESSION_ID_NONE 1 /* default, see edge_init_conf_defaults(...) in edge_utils.c */
#define N2N_COMPRESSION_ID_LZO 2 /* set if '-z1' or '-z' cli option is present, see setOption(...) in edge.c */
#ifdef N2N_HAVE_ZSTD
#define N2N_COMPRESSION_ID_ZSTD 3 /* set if '-z2' cli option is present, available only if compiled with zstd lib */
#define ZSTD_COMPRESSION_LEVEL 7 /* 1 (faster) ... 22 (more compression) */
#endif
/* (un)purgeable community indicator (supernode) */
#define COMMUNITY_UNPURGEABLE 0