init_host_server: correct getopts process
Merge pull request #110 from mookjp/fix-getopts-in-init_server

init_host_server: correct getopts process