void setTargetServer(String targetServer) { if (targetServer.equalsIgnoreCase("127.0.0.1")) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString(); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if (localhostStr.equalsIgnoreCase("127.0.0.1")) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost(targetServer); } } }
void setTargetServer ( final String targetServer ) { if ( targetServer.equalsIgnoreCase ( "127.0.0.1" ) ) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString (); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if ( localhostStr.equalsIgnoreCase ( "127.0.0.1" ) ) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost ( targetServer ); } } }
void setTargetServer(String targetServer) { if (targetServer.equalsIgnoreCase("127.0.0.1")) { //Replace with it's actual bindings, otherwise does not work for JCIFS authentication this.targetServer = getLocalhostAddressAsIPString(); } else { this.targetServer = targetServer; //will change the localhost to the actual address as well if (localhostStr.equalsIgnoreCase("127.0.0.1")) { //Bug in JDK , time to find alternate logic. localhostStr = getLocalHost(targetServer); } } }