Do not use Floating IP

We do not use a floating IP for 3 reasons:
1. The PTR record is not set to floating IP.
2. The outbound interface is not changeable to floating IP.
3. there are reports that port 25 on floating IP is blocked.
This commit is contained in:
Girish Ramakrishnan
2016-09-15 22:14:21 -07:00
parent 056b3dcb56
commit 28c8aa3222
+4 -3
View File
@@ -20,9 +20,10 @@ function getIp(callback) {
return callback(new SysInfoError(SysInfoError.INTERNAL_ERROR, 'No IP found'));
}
// first try to get the floating ip
var ip = safe.query(result.body, 'floating_ip.ipv4.ip_address');
if (!ip) ip = safe.query(result.body, 'interfaces.public[0].ipv4.ip_address');
// Note that we do not use a floating IP for 3 reasons:
// The PTR record is not set to floating IP, the outbound interface is not changeable to floating IP
// and there are reports that port 25 on floating IP is blocked.
var ip = safe.query(result.body, 'interfaces.public[0].ipv4.ip_address');
if (!ip) return callback(new SysInfoError(SysInfoError.INTERNAL_ERROR, 'No IP found'));
callback(null, ip);