UnicastConnectionManager.java (UnicastConnectionManager(int port, RMIServerSocketFactory)): Listen on "localhost", not localhost.
2007-04-17 Andrew Haley <aph@redhat.com> * gnu/java/rmi/server/UnicastConnectionManager.java (UnicastConnectionManager(int port, RMIServerSocketFactory)): Listen on "localhost", not localhost. From-SVN: r123952
This commit is contained in:
parent
3639b3fac4
commit
431f60c0eb
2 changed files with 13 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2007-04-17 Andrew Haley <aph@redhat.com>
|
||||||
|
|
||||||
|
* gnu/java/rmi/server/UnicastConnectionManager.java
|
||||||
|
(UnicastConnectionManager(int port, RMIServerSocketFactory)):
|
||||||
|
Listen on "localhost", not localhost.
|
||||||
|
|
||||||
2007-04-17 Francis Kung <fkung@redhat.com>
|
2007-04-17 Francis Kung <fkung@redhat.com>
|
||||||
|
|
||||||
PR classpath/31311
|
PR classpath/31311
|
||||||
|
|
|
@ -181,7 +181,13 @@ private UnicastConnectionManager(int port, RMIServerSocketFactory ssf) throws Re
|
||||||
serverPort = 0;
|
serverPort = 0;
|
||||||
throw new java.rmi.server.ExportException("can not create Server Socket on port " + port,ioex);
|
throw new java.rmi.server.ExportException("can not create Server Socket on port " + port,ioex);
|
||||||
}
|
}
|
||||||
serverName = localhost;
|
// Note that for compatibility the serverName is "localhost",
|
||||||
|
// not UnicastConnectionManager.localhost, which is the name
|
||||||
|
// of the local box. A server listening on localhost:port is
|
||||||
|
// listening on the loopback interface, 127.0.0.1, but
|
||||||
|
// UnicastConnectionManager.localhost is an externally
|
||||||
|
// accessible IP address.
|
||||||
|
serverName = "localhost";
|
||||||
serverFactory = ssf;
|
serverFactory = ssf;
|
||||||
clientFactory = null;
|
clientFactory = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue