Update interface detection logic
Fixbug: Update interface detection logic