lib/connections: Silence vet and lint warnings

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/2971
This commit is contained in:
Jakob Borg
2016-04-13 11:50:51 +00:00
parent 19b4f3bfb4
commit 52c7804f32
4 changed files with 13 additions and 8 deletions

View File

@@ -199,7 +199,10 @@ func (s *apiService) getListener(guiCfg config.GUIConfiguration) (net.Listener,
return nil, err
}
listener := &tlsutil.DowngradingListener{rawListener, tlsCfg}
listener := &tlsutil.DowngradingListener{
Listener: rawListener,
TLSConfig: tlsCfg,
}
return listener, nil
}