Skip to content

Commit

Permalink
commit with tag nightly-25.01.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Jan 8, 2025
1 parent 2cf5576 commit ed2097f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
Binary file modified dist/topoviewer
Binary file not shown.
14 changes: 13 additions & 1 deletion go_cloudshellwrapper/clabHandlers/clabGetEnvironment.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,24 @@ func GetEnvironmentsHandler(w http.ResponseWriter, r *http.Request, cyTopo *topo
existingData = []map[string]interface{}{}
}

var hostname01 string

allowedHostnames := confClab.GetStringSlice("allowed-hostnames")
if len(allowedHostnames) == 1 {
hostname01 = "127.0.0.1"
} else if len(allowedHostnames) > 1 {
hostname01 = allowedHostnames[1]
} else {
// Handle case where there are no allowed hostnames or log an error
hostname01 = "default-hostname" // or handle as needed
}

environments := Environments{
EnvWorkingDirectory: confClab.GetString("workdir"),
EnvClabName: cyTopo.ClabTopoDataV2.Name,
EnvClabServerAddress: confClab.GetString("clab-server-address"),
EnvAllowedHostname: confClab.GetStringSlice("allowed-hostnames")[0],
EnvAllowedHostname01: confClab.GetStringSlice("allowed-hostnames")[1],
EnvAllowedHostname01: hostname01,
EnvClabServerPort: fmt.Sprintf("%d", confClab.GetInt("server-port")),
EnvDeploymentType: confClab.GetString("deployment-type"),
EnvTopoViewerVersion: VersionInfo,
Expand Down
2 changes: 1 addition & 1 deletion go_cloudshellwrapper/constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cloudshellwrapper

var VersionInfo string = "nightly-25.01.11"
var VersionInfo string = "nightly-25.01.12"

// create html-public files
var HtmlPublicPrefixPath string = "./html-public/"
Expand Down
2 changes: 1 addition & 1 deletion go_cloudshellwrapper/constants.go.bak
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package cloudshellwrapper

var VersionInfo string = "nightly-25.01.10"
var VersionInfo string = "nightly-25.01.11"

// create html-public files
var HtmlPublicPrefixPath string = "./html-public/"
Expand Down

0 comments on commit ed2097f

Please sign in to comment.