Cast port to number
Merge pull request #2779 from sandstrom/patch-2

Helpful cast if port is configured as string