File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
test/java/com/aliyun/oss/common/utils Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1111
1212 <groupId >com.aliyun.oss</groupId >
1313 <artifactId >aliyun-sdk-oss</artifactId >
14- <version >3.4.1 </version >
14+ <version >3.4.2 </version >
1515 <packaging >jar</packaging >
1616 <name >Aliyun OSS SDK for Java</name >
1717 <description >The Aliyun OSS SDK for Java used for accessing Aliyun Object Storage Service</description >
Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ private boolean isIpOrLocalhost(URI uri) {
257257 return false ;
258258 }
259259
260- if (ia . getHostName ().equals (ia .getHostAddress ())) {
260+ if (uri . getHost ().equals (ia .getHostAddress ())) {
261261 return true ;
262262 }
263263
Original file line number Diff line number Diff line change 1- version =3.4.1
1+ version =3.4.2
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public class VersionUtilTest {
2828 @ Test
2929 public void testGetDefaultUserAgent () {
3030 String userAgent = VersionInfoUtils .getDefaultUserAgent ();
31- assertTrue (userAgent .startsWith ("aliyun-sdk-java/3.4.1 (" ));
31+ assertTrue (userAgent .startsWith ("aliyun-sdk-java/3.4.2 (" ));
3232 assertEquals (userAgent .split ("/" ).length , 4 );
3333 assertEquals (userAgent .split (";" ).length , 2 );
3434 assertEquals (userAgent .split ("\\ (" ).length , 2 );
You can’t perform that action at this time.
0 commit comments