Skip to content

Commit e71703e

Browse files
committed
get port from currrent
1 parent 541ed5b commit e71703e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (is *instanceSelector) beforeTableHTML() string {
2121
sb.WriteString("<select id=\"instance-selector\">")
2222

2323
// Get current host:port
24-
currentHostPort := "localhost:" + strconv.Itoa(*httPort)
24+
currentHostPort := "localhost:" + strconv.Itoa(is.current.Port)
2525

2626
for _, i := range instances {
2727
instanceURL := "http://" + i.Host + ":" + strconv.Itoa(i.Port)

0 commit comments

Comments
 (0)