Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
R4ein committed Oct 5, 2020
1 parent 233e326 commit 3b670d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/providers/digitalocean/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ module.exports = class ProviderDigitalOcean {
id: droplet.id.toString(),
status: droplet.status,
locked: droplet.locked,
ip: _.get(droplet, 'networks.v4[0].ip_address'),
ip: _.get(_.find(_.get(droplet,'networks.v4'), _.matchesProperty('type', 'public')),'ip_address'),
name: droplet.name,
region: droplet.region.slug,
}));
Expand Down

0 comments on commit 3b670d3

Please sign in to comment.