Merge pull request #286 from BYK/master

Fix port mismatch when used behind a reverse proxy