Add comment about IPAddress::get_ip_str unsafety.
GitOrigin-RevId: 29cd28bf9a6422cd0295c74f904ba380fc119570
This commit is contained in:
parent
54f9c77a20
commit
06b053ff3e
@ -40,6 +40,8 @@ class IPAddress {
|
|||||||
|
|
||||||
uint32 get_ipv4() const;
|
uint32 get_ipv4() const;
|
||||||
string get_ipv6() const;
|
string get_ipv6() const;
|
||||||
|
|
||||||
|
// returns result in a static thread-local buffer, which may be overwritten by any subsequent method call
|
||||||
Slice get_ip_str() const;
|
Slice get_ip_str() const;
|
||||||
|
|
||||||
static string ipv4_to_str(uint32 ipv4);
|
static string ipv4_to_str(uint32 ipv4);
|
||||||
|
Reference in New Issue
Block a user