mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-27 01:11:53 +08:00
JRMPListener Java6 compatiblity.
This commit is contained in:
@@ -150,7 +150,11 @@ public class JRMPListener implements Runnable {
|
|||||||
switch ( protocol ) {
|
switch ( protocol ) {
|
||||||
case TransportConstants.StreamProtocol:
|
case TransportConstants.StreamProtocol:
|
||||||
out.writeByte(TransportConstants.ProtocolAck);
|
out.writeByte(TransportConstants.ProtocolAck);
|
||||||
out.writeUTF(remote.getHostString());
|
if ( remote.getHostName() != null ) {
|
||||||
|
out.writeUTF(remote.getHostName());
|
||||||
|
} else {
|
||||||
|
out.writeUTF(remote.getAddress().toString());
|
||||||
|
}
|
||||||
out.writeInt(remote.getPort());
|
out.writeInt(remote.getPort());
|
||||||
out.flush();
|
out.flush();
|
||||||
in.readUTF();
|
in.readUTF();
|
||||||
|
|||||||
Reference in New Issue
Block a user