Fix switching port showing

Fix reading of config file to show active switching ports
Merge pull request #2 from nahy/master

Fix switching port showing