int conversion

convert port in integer when it is set from config file
Merge pull request #1 from minitux/patch-2

int conversion