diff --git a/system/jlib/jsocket.cpp b/system/jlib/jsocket.cpp index 753e2d966f4..2c1ee0a9cf3 100644 --- a/system/jlib/jsocket.cpp +++ b/system/jlib/jsocket.cpp @@ -3889,7 +3889,7 @@ unsigned SocketEndpoint::hash(unsigned prev) const } -StringBuffer &conditionalGetHostUrlStr(StringBuffer &str, const SocketEndpoint &ep) +StringBuffer &conditionalGetEndpointHostText(StringBuffer &str, const SocketEndpoint &ep) { if (isContainerized()) return ep.getEndpointIpText(str); diff --git a/system/jlib/jsocket.hpp b/system/jlib/jsocket.hpp index c81fabbb17f..bf64d521e44 100644 --- a/system/jlib/jsocket.hpp +++ b/system/jlib/jsocket.hpp @@ -185,7 +185,7 @@ class jlib_decl SocketEndpoint : extends IpAddress // Conditionally return endpoint hostname or resolved IP (may want condition to differ in future, e.g. depending on dns configuration) // In k8s by default pod hostnames are not resolvable from other pods, use this function when serializing the text of a host to another host -extern jlib_decl StringBuffer &conditionalGetHostUrlStr(StringBuffer &str, const SocketEndpoint &ep); +extern jlib_decl StringBuffer &conditionalGetEndpointHostText(StringBuffer &str, const SocketEndpoint &ep); class jlib_decl SocketEndpointArray : public StructArrayOf {