mirror of
https://github.com/cloudflare/cloudflared.git
synced 2025-05-12 13:46:35 +00:00
TUN-3328: Filter out free tunnel has started log from UI
This commit is contained in:
parent
02587c1edc
commit
bb530b87dd
@ -537,15 +537,17 @@ func processRegistrationSuccess(
|
|||||||
logger.Infof("Each HA connection's tunnel IDs: %v", config.Metrics.tunnelsHA.String())
|
logger.Infof("Each HA connection's tunnel IDs: %v", config.Metrics.tunnelsHA.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Print out the user's trial zone URL in a nice box (if they requested and got one)
|
// Print out the user's trial zone URL in a nice box (if they requested and got one and UI flag is not set)
|
||||||
if isTrialTunnel := config.Hostname == ""; isTrialTunnel {
|
if config.TunnelEventChan == nil {
|
||||||
if url, err := url.Parse(registration.Url); err == nil {
|
if isTrialTunnel := config.Hostname == ""; isTrialTunnel {
|
||||||
for _, line := range asciiBox(trialZoneMsg(url.String()), 2) {
|
if url, err := url.Parse(registration.Url); err == nil {
|
||||||
logger.Info(line)
|
for _, line := range asciiBox(trialZoneMsg(url.String()), 2) {
|
||||||
|
logger.Info(line)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
logger.Error("Failed to connect tunnel, please try again.")
|
||||||
|
return fmt.Errorf("empty URL in response from Cloudflare edge")
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
logger.Error("Failed to connect tunnel, please try again.")
|
|
||||||
return fmt.Errorf("empty URL in response from Cloudflare edge")
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user