Fixed sample code 'hostname' option
Merge pull request #2 from dgrad/master

Fixed sample code 'hostname' option