mattn/go-xmpp — pull request #37 by mgottschlag (2014-10-30 22:48:19+00:00)
Title: Only check the certificate's host name if InsecureSkipVerify is not set.

If we don't want to check the certificate, then we don't need to check the hostname either. Other code calling VerifyHostname seems to wrap the code into a similar check.