bug: Fix local prefix discovery

Change-Id: I724a25c0f861659e6c6cb4770be1f58eaee8915f