浏览代码

Increase URL buffer sizes

Adam Ierymenko 4 年之前
父节点
当前提交
98722ed7ea
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      include/ZeroTierOne.h
  2. 1 1
      node/NetworkConfig.hpp

+ 1 - 1
include/ZeroTierOne.h

@@ -1348,7 +1348,7 @@ typedef struct
 	/**
 	/**
 	 * If the status us AUTHENTICATION_REQUIRED, this may contain a URL for authentication.
 	 * 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.
 	 * Time that current authentication expires or -1 if external authentication is not required.

+ 1 - 1
node/NetworkConfig.hpp

@@ -94,7 +94,7 @@
 namespace ZeroTier {
 namespace ZeroTier {
 
 
 // Dictionary capacity needed for max size network config
 // 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
 // Dictionary capacity needed for max size network meta-data
 #define ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY 1024
 #define ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY 1024