Fix daemon rpc ip parsing