libs/core: only consider enabled routes when finding wan interface