set port on daemon type change
Merge pull request #12 from hobbyquaker/master

set port on daemon type change