fix type port should = localPort
Merge pull request #998 from andytaylor/master

fix typo