node-ikev2 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/src/ip-address.js +2 -1
- package/package.json +1 -1
package/lib/src/ip-address.js
CHANGED
|
@@ -32,8 +32,9 @@ function parseIPv4AddressString(addressString) {
|
|
|
32
32
|
return buffer;
|
|
33
33
|
}
|
|
34
34
|
function formatIPv4AddressBuffer(buffer) {
|
|
35
|
+
// Empty INTERNAL_IP4_* in CFG_REQUEST means "please assign" (RFC 7296).
|
|
35
36
|
if (buffer.length === 0) {
|
|
36
|
-
|
|
37
|
+
return "";
|
|
37
38
|
}
|
|
38
39
|
if (buffer.length !== 4) {
|
|
39
40
|
throw new Error(`Invalid IPv4 address ${buffer}`);
|