dolphindb 2.0.950 → 2.0.952

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/index.js CHANGED
@@ -2117,7 +2117,7 @@ export function ipaddr2str(buffer, le = true, ipv6) {
2117
2117
  let buf = buffer;
2118
2118
  if (le)
2119
2119
  buf = buffer.slice().reverse();
2120
- const i_non_zero = buf.findIndex(x => x);
2120
+ const i_non_zero = buf.findIndex(x => x !== 0);
2121
2121
  if (ipv6 ||
2122
2122
  i_non_zero !== -1 && i_non_zero < 12) // ipv6
2123
2123
  return buf2ipaddr([...buf]).toString();