mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-09-10 14:24:30 +08:00
second release
This commit is contained in:
parent
587b6eecf3
commit
c4b523e12e
2 changed files with 3 additions and 1 deletions
|
@ -91,7 +91,7 @@ func listenAddr() string {
|
|||
a = os.Getenv("BH_HOST")
|
||||
return a
|
||||
}
|
||||
a = "0.0.0.0:8080"
|
||||
a = "http://0.0.0.0:8080"
|
||||
return a
|
||||
|
||||
}
|
||||
|
|
|
@ -24,6 +24,7 @@ import (
|
|||
"net/http"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/appleboy/gin-jwt/v2"
|
||||
|
@ -318,6 +319,7 @@ func Run() {
|
|||
|
||||
})
|
||||
|
||||
Addr = strings.ReplaceAll(Addr, "http://", "")
|
||||
err = r.Run(Addr)
|
||||
if err != nil {
|
||||
fmt.Println("Error: \t", err)
|
||||
|
|
Loading…
Add table
Reference in a new issue