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 {
|
||||
if (System.getProperty("router.version") != null &&
|
||||
(host.equals("127.0.0.1") || host.equals("localhost"))) {
|
||||
try {
|
||||
return new InternalSocket(port);
|
||||
} else {
|
||||
return new Socket(host, port);
|
||||
} catch (IOException ioe) {}
|
||||
// guess it wasn't really internal...
|
||||
}
|
||||
return new Socket(host, port);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user