User: starksm
Date: 01/10/02 19:36:02
Modified: src/main/org/jboss/mq/il/oil Tag: Branch_2_4
OILServerILService.java
Log:
Fix the setBindAddress check of the host argument against null
Revision Changes Path
No revision
No revision
1.2.2.4 +3 -2 jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java
Index: OILServerILService.java
===================================================================
RCS file:
/cvsroot/jboss/jbossmq/src/main/org/jboss/mq/il/oil/OILServerILService.java,v
retrieving revision 1.2.2.3
retrieving revision 1.2.2.4
diff -u -r1.2.2.3 -r1.2.2.4
--- OILServerILService.java 2001/10/03 02:08:52 1.2.2.3
+++ OILServerILService.java 2001/10/03 02:36:02 1.2.2.4
@@ -50,7 +50,7 @@
*
* @author Hiram Chirino ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.2.2.3 $
+ * @version $Revision: 1.2.2.4 $
*/
public class OILServerILService extends org.jboss.mq.il.ServerILJMXService
implements Runnable, OILServerILServiceMBean {
protected ServerSocket serverSocket;
@@ -363,7 +363,8 @@
/** Set the interface address the OIL server bind its listening port on */
public void setBindAddress(String host) throws UnknownHostException
{
- if( host != null || host.length() == 0 )
+ // If host is null or empty use any address
+ if( host == null || host.length() == 0 )
bindAddress = null;
else
bindAddress = InetAddress.getByName(host);
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development