mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 14:18:26 +02:00
Bug fixes around hybrid
This commit is contained in:
parent
49cb2ae260
commit
c53eac76f8
2 changed files with 3 additions and 2 deletions
|
@ -13,7 +13,7 @@ import (
|
|||
const (
|
||||
FRONTEND_SECRET_KEY = "af4e4785-7e09-11f0-b93a-74563c4e2a7e"
|
||||
// CLOUD_API_URL = "https://pangolin.fossorial.io/api/v1/remote-exit-node/quick-start"
|
||||
CLOUD_API_URL = "http://localhost:4000/api/v1/remote-exit-node/quick-start"
|
||||
CLOUD_API_URL = "https://enterprise.fosrl.io/api/v1/remote-exit-node/quick-start"
|
||||
)
|
||||
|
||||
// HybridCredentials represents the response from the cloud API
|
||||
|
@ -67,6 +67,7 @@ func requestHybridCredentials() (*HybridCredentials, error) {
|
|||
|
||||
// Set headers
|
||||
req.Header.Set("Content-Type", "application/json")
|
||||
req.Header.Set("X-CSRF-Token", "x-csrf-protection")
|
||||
|
||||
// Create HTTP client with timeout
|
||||
client := &http.Client{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue