Skip to content

Commit 9cc1d75

Browse files
committed
---
yaml --- r: 6559 b: refs/heads/tswast-patch-1 c: a23d8f9 h: refs/heads/master i: 6557: d799370 6555: 312b4d6 6551: b1d4569 6543: 1edcd0a 6527: 81ca046
1 parent d895bd1 commit 9cc1d75

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 8808c54c09a1d80060d8ea804164dc26ee4ce229
60+
refs/heads/tswast-patch-1: a23d8f9773334a2698eb5770deaee3e6d140f751
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/gcloud-java-datastore/src/main/java/com/google/gcloud/spi/DefaultDatastoreRpc.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@
4242
import org.json.JSONTokener;
4343

4444
import java.net.InetAddress;
45-
import java.net.MalformedURLException;
4645
import java.net.URL;
47-
import java.net.UnknownHostException;
4846
import java.util.HashMap;
4947
import java.util.Map;
5048

@@ -95,7 +93,7 @@ private static boolean isLocalHost(String host) {
9593
}
9694
InetAddress hostAddr = InetAddress.getByName(new URL(normalizedHost).getHost());
9795
return hostAddr.isAnyLocalAddress() || hostAddr.isLoopbackAddress();
98-
} catch (UnknownHostException | MalformedURLException e) {
96+
} catch (Exception e) {
9997
// ignore
10098
}
10199
}

0 commit comments

Comments
 (0)