gb vendor update github.com/matrix-org/gomatrixserverlib

This commit is contained in:
Brendan Abolivier 2017-09-11 18:03:20 +01:00
parent 1ee6824412
commit 58767542e7
No known key found for this signature in database
GPG key ID: 8EF1500759F70623
3 changed files with 3 additions and 3 deletions

2
vendor/manifest vendored
View file

@ -116,7 +116,7 @@
{
"importpath": "github.com/matrix-org/gomatrixserverlib",
"repository": "https://github.com/matrix-org/gomatrixserverlib",
"revision": "c8e825a7db0067101858975a8b689b3797cb31e9",
"revision": "fe45d482f2280c9f92f09eb6650e7aa3cca051c5",
"branch": "master"
},
{

View file

@ -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

View file

@ -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))