Ensure it assigns the correct address to lo interface

Fix for issue #7