balodesecurity opened a new pull request, #8419:
URL: https://github.com/apache/hadoop/pull/8419

   ## Summary
   - In `histogram-hostip.js`, `open_hostip_list()` extracted the host from 
`dn.infoAddr` using `split(":")[0]`. For an IPv6 `infoAddr` of the form 
`[2001:db8::1]:9864` this yields `[2001` instead of the full IPv6 address.
   - Fix mirrors the logic already used in `dfshealth.js`: split on `]:` first; 
if more than one part the address is IPv6 and we strip the leading `[` from 
part `[0]`; otherwise fall back to the original IPv4 `split(":")[0]` path.
   
   ## Test
   - JavaScript-only change; verified manually that IPv4 (`host:port`) 
continues to extract the host, and IPv6 (`[addr]:port`) now correctly extracts 
the full address without brackets.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to