Fixed the check to see if an interface is remote or local