Changes between Version 7 and Version 8 of MapGuideRfc118
- Timestamp:
- 07/05/11 02:27:06 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MapGuideRfc118
v7 v8 38 38 #define ACE_HAS_IPV6 39 39 }}} 40 It should be defined in config.hso that it could be effective for both Windows and Linux40 It should be defined in '''{{{config.h}}}''' so that it could be effective for both Windows and Linux 41 41 2. '''Port the IP address validation logic'''. 42 42 There is existing logic to validate if the IP address specified in the configuration file is valid. But the logic always assumes the IP address is in v4 format. We need port the logic to consider both v4 format and v6 format. One example is like below in … … 124 124 } 125 125 }}} 126 Then it works for only IPv4. And for IPv6, because the valid format is really complicated, then convert it to a hex string is difficult.127 The solution is: encode the IP as Base64 string. The port numbers will still be converted to hex string so that they could be easily decoded.126 Then it works for only IPv4. And for IPv6, because the valid format is really complicated, then converting it to a hex string is difficult. 127 The solution is: encode the IP as a Base64 string. The port numbers will still be converted to hex string so that they could be easily decoded. 128 128 Then the new method will be like: 129 129 {{{