forked from golang/hotime
升级同时支持http与https
This commit is contained in:
parent
51b1eb3149
commit
d334856c6c
@ -127,7 +127,9 @@ func (this *Application) Run(router Router) {
|
|||||||
ch <- 1
|
ch <- 1
|
||||||
|
|
||||||
}()
|
}()
|
||||||
} else if ObjToCeilInt(this.TLSPort) != 0 {
|
}
|
||||||
|
|
||||||
|
if ObjToCeilInt(this.TLSPort) != 0 {
|
||||||
go func() {
|
go func() {
|
||||||
|
|
||||||
App[this.TLSPort] = this
|
App[this.TLSPort] = this
|
||||||
@ -139,7 +141,8 @@ func (this *Application) Run(router Router) {
|
|||||||
ch <- 2
|
ch <- 2
|
||||||
|
|
||||||
}()
|
}()
|
||||||
} else {
|
}
|
||||||
|
if ObjToCeilInt(this.Port) == 0 && ObjToCeilInt(this.TLSPort) == 0 {
|
||||||
logFmt("没有端口启用", 2, LOG_INFO)
|
logFmt("没有端口启用", 2, LOG_INFO)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user