int conversion

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

int conversion