Fix for invalid hostname
Merge pull request #1 from Oefenweb/fix-for-invalid-hostname

Fix for invalid hostname