From 9bbe6292a201c85a27d346d4beb927fa6da0210a Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Thu, 28 Apr 2022 14:23:49 -0700 Subject: [PATCH] compat notes --- src/clientconn.cpp | 4 ++++ src/serverconn.cpp | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/clientconn.cpp b/src/clientconn.cpp index 437ecaa..e5930b2 100644 --- a/src/clientconn.cpp +++ b/src/clientconn.cpp @@ -179,6 +179,10 @@ void Connection::handle_CONNECTION_VALIDATION() std::string selected; + /* Server list given in reverse order of priority. + * Old pvAccess* was missing a "break" when looping, + * so it took the last known plugin. + */ for(auto n : range(nauth.size)) { (void)n; diff --git a/src/serverconn.cpp b/src/serverconn.cpp index 4e7c4ef..07ca401 100644 --- a/src/serverconn.cpp +++ b/src/serverconn.cpp @@ -82,6 +82,11 @@ ServerConn::ServerConn(ServIface* iface, evutil_socket_t sock, struct sockaddr * to_wire(M, uint32_t(0x10000)); // serverIntrospectionRegistryMaxSize, also not used to_wire(M, uint16_t(0x7fff)); + + /* list given in reverse order of priority. + * Old pvAccess* was missing a "break" when looping, + * so it took the last known plugin. + */ to_wire(M, Size{2}); to_wire(M, "anonymous"); to_wire(M, "ca");