Skip to content

Commit

Permalink
Fix issue Azure#2102
Browse files Browse the repository at this point in the history
  • Loading branch information
yaxia committed Sep 15, 2015
1 parent a458e43 commit a2de470
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/storage.util._js
Expand Up @@ -1228,7 +1228,7 @@ function getStorageServiceEndpointSuffix() {
}

var urlObj = url.parse(uri);
if (validation.isIP(urlObj.host)) {
if (urlObj.host && validation.isIP(urlObj.host)) {
return urlObj.host;
} else {
return uri.substring(uri.indexOf('.') + 1, uri.length);
Expand Down

0 comments on commit a2de470

Please sign in to comment.