mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 13:48:13 +02:00
Bug fixes around hybrid
This commit is contained in:
parent
49cb2ae260
commit
c53eac76f8
2 changed files with 3 additions and 2 deletions
|
@ -309,7 +309,7 @@ func collectUserInput(reader *bufio.Reader) Config {
|
||||||
// Basic configuration
|
// Basic configuration
|
||||||
fmt.Println("\n=== Basic Configuration ===")
|
fmt.Println("\n=== Basic Configuration ===")
|
||||||
for {
|
for {
|
||||||
response := readString(reader, "Do you want to install Pangolin as a cloud-managed self-hosted node? (yes/no)", "")
|
response := readString(reader, "Do you want to install Pangolin as a cloud-managed (beta) node? (yes/no)", "")
|
||||||
if strings.EqualFold(response, "yes") || strings.EqualFold(response, "y") {
|
if strings.EqualFold(response, "yes") || strings.EqualFold(response, "y") {
|
||||||
config.HybridMode = true
|
config.HybridMode = true
|
||||||
break
|
break
|
||||||
|
|
|
@ -13,7 +13,7 @@ import (
|
||||||
const (
|
const (
|
||||||
FRONTEND_SECRET_KEY = "af4e4785-7e09-11f0-b93a-74563c4e2a7e"
|
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 = "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
|
// HybridCredentials represents the response from the cloud API
|
||||||
|
@ -67,6 +67,7 @@ func requestHybridCredentials() (*HybridCredentials, error) {
|
||||||
|
|
||||||
// Set headers
|
// Set headers
|
||||||
req.Header.Set("Content-Type", "application/json")
|
req.Header.Set("Content-Type", "application/json")
|
||||||
|
req.Header.Set("X-CSRF-Token", "x-csrf-protection")
|
||||||
|
|
||||||
// Create HTTP client with timeout
|
// Create HTTP client with timeout
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue