fix and update config

This commit is contained in:
deepzz0
2017-07-09 01:18:07 +08:00
parent a932d2906d
commit b9470fa14c
5 changed files with 3 additions and 4 deletions

View File

@@ -48,7 +48,6 @@ func BlackFilter(c *gin.Context) bool {
// 重定向
func Redirect(c *gin.Context) bool {
fmt.Println("scheme=======", c.Request.URL.Scheme)
if setting.Conf.Mode.EnableHttps && c.Request.ProtoMajor == 1 {
var port string
if strings.Contains(c.Request.Host, ":") {