mirror of
https://github.com/frohoff/ysoserial.git
synced 2026-09-22 23:11:52 +08:00
JRMPListener Java6 compatiblity.
This commit is contained in:
@@ -150,7 +150,11 @@ public class JRMPListener implements Runnable {
|
||||
switch ( protocol ) {
|
||||
case TransportConstants.StreamProtocol:
|
||||
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.flush();
|
||||
in.readUTF();
|
||||
|
||||
Reference in New Issue
Block a user