mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Change IPv6 output format to no longer automatically be bracketed.
Instead, the `addr_to_uri` script-level function can be used to explicitly add brackets to an address if it's IPv6 and will be included in a URI or when a ":<port>" needs to be appended to it.
This commit is contained in:
parent
af4be0bbe6
commit
905e4d3a14
33 changed files with 290 additions and 272 deletions
|
@ -261,7 +261,7 @@ string WriterBackend::Render(const threading::Value::addr_t& addr) const
|
|||
if ( ! bro_inet_ntop(AF_INET6, &addr.in.in6, s, INET6_ADDRSTRLEN) )
|
||||
return "<bad IPv6 address conversion>";
|
||||
else
|
||||
return string("[") + s + "]";
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue