second release

This commit is contained in:
nicksherron 2020-02-10 03:30:17 -05:00
parent 587b6eecf3
commit c4b523e12e
2 changed files with 3 additions and 1 deletions

View file

@ -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
} }

View file

@ -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)