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")
return a
}
a = "0.0.0.0:8080"
a = "http://0.0.0.0:8080"
return a
}

View file

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