Skip to content

Commit 87dc720

Browse files
committed
Update server name serialization version
This commit updates the serialization version for the server name on the proxy mode info, used in the remote info API.
1 parent 2abf40a commit 87dc720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/transport/ProxyConnectionStrategy.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public ProxyModeInfo(String address, String serverName, int maxSocketConnections
268268

269269
private ProxyModeInfo(StreamInput input) throws IOException {
270270
address = input.readString();
271-
if (input.getVersion().onOrAfter(Version.V_8_0_0)) {
271+
if (input.getVersion().onOrAfter(Version.V_7_7_0)) {
272272
serverName = input.readString();
273273
} else {
274274
serverName = null;
@@ -289,7 +289,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
289289
@Override
290290
public void writeTo(StreamOutput out) throws IOException {
291291
out.writeString(address);
292-
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
292+
if (out.getVersion().onOrAfter(Version.V_7_7_0)) {
293293
out.writeString(serverName);
294294
}
295295
out.writeVInt(maxSocketConnections);

0 commit comments

Comments
 (0)