diff --git a/src/network/fixed.js b/src/network/fixed.js index 78b3a1d4e..37646a481 100644 --- a/src/network/fixed.js +++ b/src/network/fixed.js @@ -14,7 +14,9 @@ const assert = require('assert'), async function getIPv4(config) { assert.strictEqual(typeof config, 'object'); - return config.ip; + if ('ip' in config) return config.ip; + + throw new BoxError(BoxError.NETWORK_ERROR, 'No IPv4 configured'); } async function getIPv6(config) {