ASF Bugzilla – Attachment 24373 Details for
Bug 47980
hostname resolves to 127.0.0.1 - specifiying IP not possible
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
dont use localhost when hostname specified
nonlocalhost-hostname-ip.diff (text/plain), 659 bytes, created by
Jeremy Jay
on 2009-10-11 17:48:15 UTC
(
hide
)
Description:
dont use localhost when hostname specified
Filename:
MIME Type:
Creator:
Jeremy Jay
Created:
2009-10-11 17:48:15 UTC
Size:
659 bytes
patch
obsolete
>--- RemoteJMeterEngineImpl.java.orig 2009-06-17 11:29:16.000000000 -0400 >+++ RemoteJMeterEngineImpl.java 2009-10-11 20:33:46.000000000 -0400 >@@ -70,7 +70,11 @@ > log.info("Starting backing engine on " + port); > InetAddress localHost=null; > try { >+ String host = System.getProperties().getProperty("java.rmi.server.hostname"); >+ if( host==null ) > localHost = InetAddress.getLocalHost(); >+ else >+ localHost = InetAddress.getByName(host); > } catch (UnknownHostException e1) { > throw new RemoteException("Cannot start. Unable to get local host IP address."); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 47980
: 24373