Skip to content

Commit

Permalink
Merge pull request #206 from Shallwewu/master
Browse files Browse the repository at this point in the history
version
  • Loading branch information
Shallwewu authored Mar 8, 2019
2 parents a094c4b + 5a0a7cf commit 04b01e9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<groupId>com.aliyun.oss</groupId>
<artifactId>aliyun-sdk-oss</artifactId>
<version>3.4.1</version>
<version>3.4.2</version>
<packaging>jar</packaging>
<name>Aliyun OSS SDK for Java</name>
<description>The Aliyun OSS SDK for Java used for accessing Aliyun Object Storage Service</description>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/aliyun/oss/OSSClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private boolean isIpOrLocalhost(URI uri) {
return false;
}

if (ia.getHostName().equals(ia.getHostAddress())) {
if (uri.getHost().equals(ia.getHostAddress())) {
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/versioninfo.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=3.4.1
version=3.4.2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class VersionUtilTest {
@Test
public void testGetDefaultUserAgent() {
String userAgent = VersionInfoUtils.getDefaultUserAgent();
assertTrue(userAgent.startsWith("aliyun-sdk-java/3.4.1("));
assertTrue(userAgent.startsWith("aliyun-sdk-java/3.4.2("));
assertEquals(userAgent.split("/").length, 4);
assertEquals(userAgent.split(";").length, 2);
assertEquals(userAgent.split("\\(").length, 2);
Expand Down

0 comments on commit 04b01e9

Please sign in to comment.