mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2025-11-12 06:40:53 +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")
|
a = os.Getenv("BH_HOST")
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
a = "0.0.0.0:8080"
|
a = "http://0.0.0.0:8080"
|
||||||
return a
|
return a
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/appleboy/gin-jwt/v2"
|
"github.com/appleboy/gin-jwt/v2"
|
||||||
|
|
@ -318,6 +319,7 @@ func Run() {
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Addr = strings.ReplaceAll(Addr, "http://", "")
|
||||||
err = r.Run(Addr)
|
err = r.Run(Addr)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error: \t", err)
|
fmt.Println("Error: \t", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue