|
@@ -123,7 +123,7 @@ public class SSH implements Protocol {
|
|
|
|
|
|
@Override
|
|
|
public TALK_FIRST whoTalksFirst() {
|
|
|
- return TALK_FIRST.SERVER;
|
|
|
+ return TALK_FIRST.CLIENT;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -138,12 +138,12 @@ public class SSH implements Protocol {
|
|
|
}
|
|
|
switch (state) {
|
|
|
case NONE:
|
|
|
+ extractType(request);
|
|
|
responsePackets.add(new Packet(serverVersion + serverType + "\r\n",
|
|
|
toString()));
|
|
|
state = STATE.SERVER_VERSION;
|
|
|
break;
|
|
|
case SERVER_VERSION:
|
|
|
- extractType(request);
|
|
|
extractPayload(request);
|
|
|
responsePackets.add(kexInit());
|
|
|
state = STATE.CLIENT_VERSION;
|