From a17b990570e5d20427a2190220cbd0f265a6524a Mon Sep 17 00:00:00 2001 From: frekky Date: Wed, 16 Dec 2015 22:44:51 +0800 Subject: [PATCH] Reduced max label size to accomodate fussy DNS servers At some point this may become a command line option --- src/encoding.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/encoding.h b/src/encoding.h index aed7c28..6b206b9 100644 --- a/src/encoding.h +++ b/src/encoding.h @@ -27,7 +27,9 @@ #define DOWNCODECCHECK1 "\000\000\000\000\377\377\377\377\125\125\125\125\252\252\252\252\201\143\310\322\307\174\262\027\137\117\316\311\111\055\122\041\141\251\161\040\045\263\006\163\346\330\104\060\171\120\127\277" #define DOWNCODECCHECK1_LEN 48 -#define DNS_MAXLABEL 63 +/* Don't push the limit with DNS servers: potentially unwanted behaviour + * if labels are all 63 chars long (DNS standard max label length) */ +#define DNS_MAXLABEL 59 struct encoder { char name[8];