fix a port initialization bug on Linux.
Merge pull request #2 from oasynnoum/master

fix a port initialization bug on Linux.