fix type of useip  and main parameter, it is  an int not bool 

Hi,

in according to the documentation, the types are not bool. This PR fixes this.
https://www.zabbix.com/documentation/2.0/manual/appendix/api/hostinterface/definitions#host_interface
https://www.zabbix.com/documentation/2.2/manual/appendix/api/hostinterface/definitions#host_interface

regards f0