Ask the api server for public ip instead of local interface

Part of #106 and #86
Might fix #115 pending testing
This commit is contained in:
Johannes
2016-11-29 15:26:25 +01:00
parent a2afadfe92
commit 756b36d227
2 changed files with 20 additions and 16 deletions

View File

@@ -43,7 +43,7 @@ function getApi(callback) {
switch (config.provider()) {
case '': return callback(null, caas); // current fallback for caas
case 'caas': return callback(null, caas);
case 'digitalocean': return callback(null, caas);
case 'digitalocean': return callback(null, generic);
case 'ec2': return callback(null, ec2);
case 'scaleway': return callback(null, scaleway);
case 'generic': return callback(null, generic);