summaryrefslogtreecommitdiff
path: root/cmd/cli/main.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-09 15:17:47 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-09 15:17:47 +0200
commit113de64ac73f529af14da3e0aff12b05c2edd3a7 (patch)
tree62a8ebda8ebb9e836e0738698714bb80c354a9ea /cmd/cli/main.go
parentccac217fedaa83b530c37d573f422003f7af5a6d (diff)
CMD: Ensure / path suffix
So that it also matches the url in the map
Diffstat (limited to 'cmd/cli/main.go')
-rw-r--r--cmd/cli/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/cli/main.go b/cmd/cli/main.go
index 31d2035..5a35c8e 100644
--- a/cmd/cli/main.go
+++ b/cmd/cli/main.go
@@ -86,6 +86,9 @@ func getConfig(state *eduvpn.VPNState, url string, isInstitute bool) (string, er
if !strings.HasPrefix(url, "https://") {
url = "https://" + url
}
+ if !strings.HasSuffix(url, "/") {
+ url += "/"
+ }
if isInstitute {
return state.GetConfigInstituteAccess(url, false)
}