Bug fixes around hybrid

This commit is contained in:
Owen 2025-08-20 18:50:39 -07:00
parent 49cb2ae260
commit c53eac76f8
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
2 changed files with 3 additions and 2 deletions

View file

@ -309,7 +309,7 @@ func collectUserInput(reader *bufio.Reader) Config {
// Basic configuration
fmt.Println("\n=== Basic Configuration ===")
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") {
config.HybridMode = true
break

View file

@ -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{