this fixes issue#6

This is not the most elegant solution but at least it checks the hostname

Signed-off-by: Emmanuel Mathot <emmanuel.mahot@gmail.com>