diff --git a/include/ZeroTierOne.h b/include/ZeroTierOne.h index cb4474c72..f59efd5d9 100644 --- a/include/ZeroTierOne.h +++ b/include/ZeroTierOne.h @@ -1348,7 +1348,7 @@ typedef struct /** * If the status us AUTHENTICATION_REQUIRED, this may contain a URL for authentication. */ - char authenticationURL[256]; + char authenticationURL[2048]; /** * Time that current authentication expires or -1 if external authentication is not required. diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index ebd046ab2..d022359dd 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -94,7 +94,7 @@ namespace ZeroTier { // Dictionary capacity needed for max size network config -#define ZT_NETWORKCONFIG_DICT_CAPACITY (1024 + (sizeof(ZT_VirtualNetworkRule) * ZT_MAX_NETWORK_RULES) + (sizeof(Capability) * ZT_MAX_NETWORK_CAPABILITIES) + (sizeof(Tag) * ZT_MAX_NETWORK_TAGS) + (sizeof(CertificateOfOwnership) * ZT_MAX_CERTIFICATES_OF_OWNERSHIP)) +#define ZT_NETWORKCONFIG_DICT_CAPACITY (4096 + (sizeof(ZT_VirtualNetworkRule) * ZT_MAX_NETWORK_RULES) + (sizeof(Capability) * ZT_MAX_NETWORK_CAPABILITIES) + (sizeof(Tag) * ZT_MAX_NETWORK_TAGS) + (sizeof(CertificateOfOwnership) * ZT_MAX_CERTIFICATES_OF_OWNERSHIP)) // Dictionary capacity needed for max size network meta-data #define ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY 1024