parent
38bdf0cd27
commit
7a98e210da
|
@ -16,10 +16,8 @@
|
|||
|
||||
package org.springframework.web.socket.client.standard;
|
||||
|
||||
import java.net.InetAddress;
|
||||
import java.net.InetSocketAddress;
|
||||
import java.net.URI;
|
||||
import java.net.UnknownHostException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
@ -186,15 +184,6 @@ public class StandardWebSocketClient extends AbstractWebSocketClient {
|
|||
return result;
|
||||
}
|
||||
|
||||
private static InetAddress getLocalHost() {
|
||||
try {
|
||||
return InetAddress.getLocalHost();
|
||||
}
|
||||
catch (UnknownHostException ex) {
|
||||
return InetAddress.getLoopbackAddress();
|
||||
}
|
||||
}
|
||||
|
||||
private static int getPort(URI uri) {
|
||||
if (uri.getPort() == -1) {
|
||||
String scheme = uri.getScheme().toLowerCase(Locale.ROOT);
|
||||
|
|
Loading…
Reference in New Issue