This commit fixes a bug where the variable holding the index of the private interface was shadowed, causing it to always be "0". Signed-off-by: Lucas Servén Marín <lserven@gmail.com>