fix port extraction
Merge pull request #80 from AlexanderPavlenko/master

Fix port number extraction