mirror of
https://gitee.com/johng/gf
synced 2026-06-27 01:43:33 +08:00
完成ghttp.Server热重启特性的HTTP&HTTPS在Linux下的功能及稳定性测试
This commit is contained in:
@ -11,7 +11,8 @@ func main() {
|
||||
r.Response.Writeln("您可以同时通过HTTP和HTTPS方式看到该内容!")
|
||||
})
|
||||
s.EnableHTTPS("/home/john/temp/server.crt", "/home/john/temp/server.key")
|
||||
s.SetHTTPSPort(8198)
|
||||
s.SetPort(8199)
|
||||
s.SetHTTPSPort(8198, 8199)
|
||||
s.SetPort(8200, 8300)
|
||||
s.EnableAdmin()
|
||||
s.Run()
|
||||
}
|
||||
Reference in New Issue
Block a user