Skip to content

Commit a5d1d62

Browse files
author
Jason Larke
committed
Added NETCONF 1.1 capability to client
This fixes a deadlocking issue where the Session would expect the framing protocol to be used if ServerCapabilities contained 1.1, but the server would actually be using the legacy protocol as the client only advertised that it supported 1.0
1 parent bd01d97 commit a5d1d62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Renci.SshNet/Netconf/NetConfSession.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public NetConfSession(ISession session, int operationTimeout)
4444
"<capability>" +
4545
"urn:ietf:params:netconf:base:1.0" +
4646
"</capability>" +
47+
"<capability>" +
48+
"urn:ietf:params:netconf:base:1.1" +
49+
"</capability>" +
4750
"</capabilities>" +
4851
"</hello>");
4952

0 commit comments

Comments
 (0)