Patchwork D2484: wireprotoserver: identify requests via version 2 of SSH protocol as such

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 12:13 a.m.
Message ID <746c899b4592f3b80d221290d4896ba6@localhost.localdomain>
Download mbox | patch
Permalink /patch/28749/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2018, 12:13 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGaf0d38f015bb: wireprotoserver: identify requests via version 2 of SSH protocol as such (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2484?vs=6334&id=6409

REVISION DETAIL
  https://phab.mercurial-scm.org/D2484

AFFECTED FILES
  mercurial/wireprotoserver.py

CHANGE DETAILS




To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py
--- a/mercurial/wireprotoserver.py
+++ b/mercurial/wireprotoserver.py
@@ -371,6 +371,10 @@ 
 class sshv2protocolhandler(sshv1protocolhandler):
     """Protocol handler for version 2 of the SSH protocol."""
 
+    @property
+    def name(self):
+        return wireprototypes.SSHV2
+
 def _runsshserver(ui, repo, fin, fout, ev):
     # This function operates like a state machine of sorts. The following
     # states are defined: