mirror of
https://github.com/fosrl/olm.git
synced 2026-03-03 01:06:49 +00:00
@@ -149,6 +149,7 @@ func Run(ctx context.Context, config Config) {
|
|||||||
// If we have credentials and no tunnel is running, start it
|
// If we have credentials and no tunnel is running, start it
|
||||||
if id != "" && secret != "" && endpoint != "" && !tunnelRunning {
|
if id != "" && secret != "" && endpoint != "" && !tunnelRunning {
|
||||||
logger.Info("Starting tunnel process with initial credentials")
|
logger.Info("Starting tunnel process with initial credentials")
|
||||||
|
tunnelRunning = true
|
||||||
go TunnelProcess(ctx, config, id, secret, endpoint)
|
go TunnelProcess(ctx, config, id, secret, endpoint)
|
||||||
} else if id == "" || secret == "" || endpoint == "" {
|
} else if id == "" || secret == "" || endpoint == "" {
|
||||||
// If we don't have credentials, check if API is enabled
|
// If we don't have credentials, check if API is enabled
|
||||||
|
|||||||
Reference in New Issue
Block a user