From d334856c6c60686fdb01ceffb5c4bd268f49bee0 Mon Sep 17 00:00:00 2001 From: hoteas <925970985@qq.com> Date: Fri, 17 Jul 2020 01:10:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=90=8C=E6=97=B6=E6=94=AF?= =?UTF-8?q?=E6=8C=81http=E4=B8=8Ehttps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/application.go b/application.go index 4633806..2b14ebb 100644 --- a/application.go +++ b/application.go @@ -127,7 +127,9 @@ func (this *Application) Run(router Router) { ch <- 1 }() - } else if ObjToCeilInt(this.TLSPort) != 0 { + } + + if ObjToCeilInt(this.TLSPort) != 0 { go func() { App[this.TLSPort] = this @@ -139,7 +141,8 @@ func (this *Application) Run(router Router) { ch <- 2 }() - } else { + } + if ObjToCeilInt(this.Port) == 0 && ObjToCeilInt(this.TLSPort) == 0 { logFmt("没有端口启用", 2, LOG_INFO) return