From 58767542e7d383e1e042abdecdda2898a6e5cf80 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Mon, 11 Sep 2017 18:03:20 +0100 Subject: [PATCH] gb vendor update github.com/matrix-org/gomatrixserverlib --- vendor/manifest | 2 +- .../github.com/matrix-org/gomatrixserverlib/hooks/pre-commit | 2 +- vendor/src/github.com/matrix-org/gomatrixserverlib/resolve.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/manifest b/vendor/manifest index f766f2f0b..58663b495 100644 --- a/vendor/manifest +++ b/vendor/manifest @@ -116,7 +116,7 @@ { "importpath": "github.com/matrix-org/gomatrixserverlib", "repository": "https://github.com/matrix-org/gomatrixserverlib", - "revision": "c8e825a7db0067101858975a8b689b3797cb31e9", + "revision": "fe45d482f2280c9f92f09eb6650e7aa3cca051c5", "branch": "master" }, { diff --git a/vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit b/vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit index 380734387..4ef525b50 100644 --- a/vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit +++ b/vendor/src/github.com/matrix-org/gomatrixserverlib/hooks/pre-commit @@ -4,7 +4,7 @@ set -eu echo "Installing lint search engine..." go get github.com/alecthomas/gometalinter/ -gometalinter --config=linter.json --install +gometalinter --config=linter.json --install --update echo "Looking for lint..." gometalinter --config=linter.json diff --git a/vendor/src/github.com/matrix-org/gomatrixserverlib/resolve.go b/vendor/src/github.com/matrix-org/gomatrixserverlib/resolve.go index 14f211931..ad241bc78 100644 --- a/vendor/src/github.com/matrix-org/gomatrixserverlib/resolve.go +++ b/vendor/src/github.com/matrix-org/gomatrixserverlib/resolve.go @@ -43,7 +43,7 @@ func LookupServer(serverName ServerName) (*DNSResult, error) { // nolint: gocycl result.Hosts = map[string]HostResult{} hosts := map[string][]net.SRV{} - if strings.Contains(string(serverName), ":") { + if !strings.Contains(string(serverName), ":") { // If there isn't an explicit port set then try to look up the SRV record. var err error result.SRVCName, result.SRVRecords, err = net.LookupSRV("matrix", "tcp", string(serverName))