7b42bb0e2d
This closes #10513, thanks to @bastelfreak for the report. GET /status/leader returns an IPv6 host with square brackets around the IP address as expected, but the rpcAddr property on the agent model does not. This fixes rpcAddr, updates the Mirage /status/leader mock to properly format an IPv6 host, and changes the agent factory to sometimes produce IPv6 addresses. I added a formatHost utility function to centralise the conditional square bracket-wrapping that would have otherwise been further scattered around. |
||
---|---|---|
.. | ||
classes | ||
properties | ||
styleguide | ||
add-to-path.js | ||
breadcrumb-utils.js | ||
codes-for-error.js | ||
escape-task-name.js | ||
fetch.js | ||
format-duration.js | ||
format-host.js | ||
generate-exec-url.js | ||
ip-parts.js | ||
json-with-default.js | ||
keys.js | ||
message-from-adapter-error.js | ||
no-leader-error.js | ||
notify-error.js | ||
notify-forbidden.js | ||
open-exec-url.js | ||
ott-exchange-error.js | ||
qp-serialize.js | ||
remove-record.js | ||
resources-diffs.js | ||
stream-frames.js | ||
timeout.js | ||
units.js | ||
wait.js |