Detect lo as a valid loopback interface.

Closes #12811
Didn't remove debugging. Oops.
Merge pull request #12823 from cachedout/12811

Detect lo as a valid loopback interface.