fallback to external socket
This commit is contained in:
@ -36,10 +36,12 @@ public class InternalSocket extends Socket {
|
|||||||
public static Socket getSocket(String host, int port) throws IOException {
|
public static Socket getSocket(String host, int port) throws IOException {
|
||||||
if (System.getProperty("router.version") != null &&
|
if (System.getProperty("router.version") != null &&
|
||||||
(host.equals("127.0.0.1") || host.equals("localhost"))) {
|
(host.equals("127.0.0.1") || host.equals("localhost"))) {
|
||||||
return new InternalSocket(port);
|
try {
|
||||||
} else {
|
return new InternalSocket(port);
|
||||||
return new Socket(host, port);
|
} catch (IOException ioe) {}
|
||||||
|
// guess it wasn't really internal...
|
||||||
}
|
}
|
||||||
|
return new Socket(host, port);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user