summaryrefslogtreecommitdiff
path: root/internal/server/secureinternet.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/secureinternet.go')
-rw-r--r--internal/server/secureinternet.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/server/secureinternet.go b/internal/server/secureinternet.go
index bd2d66a..9b1d394 100644
--- a/internal/server/secureinternet.go
+++ b/internal/server/secureinternet.go
@@ -127,6 +127,11 @@ func (s *SecureInternetHomeServer) init(
return err
}
+ // Set the current location to the home location if there is none
+ if s.CurrentLocation == "" {
+ s.CurrentLocation = homeLoc.CountryCode
+ }
+
// Make sure oauth contains our endpoints
s.Auth.Init(b.URL, b.Endpoints.API.V3.Authorization, b.Endpoints.API.V3.Token)
return nil