summaryrefslogtreecommitdiff
path: root/client/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'client/server.go')
-rw-r--r--client/server.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/server.go b/client/server.go
index a0de9f3..74caff1 100644
--- a/client/server.go
+++ b/client/server.go
@@ -9,6 +9,7 @@ import (
"github.com/eduvpn/eduvpn-common/internal/oauth"
"github.com/eduvpn/eduvpn-common/internal/server"
"github.com/eduvpn/eduvpn-common/types"
+ discotypes "github.com/eduvpn/eduvpn-common/types/discovery"
"github.com/eduvpn/eduvpn-common/types/protocol"
"github.com/go-errors/errors"
)
@@ -265,7 +266,7 @@ func (c *Client) AddInstituteServer(url string) (err error) {
// FIXME: Do nothing with discovery here as the client already has it
// So pass a server as the parameter
- var dSrv *types.DiscoveryServer
+ var dSrv *discotypes.Server
dSrv, err = c.Discovery.ServerByURL(url, "institute_access")
if err != nil {
c.goBackInternal()
@@ -378,7 +379,7 @@ func (c *Client) AddCustomServer(url string) (err error) {
// Indicate that we're loading the server
c.FSM.GoTransition(StateLoadingServer)
- customServer := &types.DiscoveryServer{
+ customServer := &discotypes.Server{
BaseURL: url,
DisplayName: map[string]string{"en": url},
Type: "custom_server",