Browse Source

Increase URL buffer sizes

pull/2/head
Adam Ierymenko 5 years ago
parent
commit
98722ed7ea
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3
  1. 2
      include/ZeroTierOne.h
  2. 2
      node/NetworkConfig.hpp

2
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.

2
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

Loading…
Cancel
Save