mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-05 05:00:05 +00:00
优化 Websocket 连接
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
)
|
||||
|
||||
// ServeWeb ..
|
||||
func ServeWeb() {
|
||||
func ServeWeb(port uint) {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
if dao.Conf.Debug {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
@@ -43,7 +43,7 @@ func ServeWeb() {
|
||||
r.Static("/static", "resource/static")
|
||||
r.LoadHTMLGlob("resource/template/**/*")
|
||||
routers(r)
|
||||
r.Run()
|
||||
r.Run(fmt.Sprintf(":%d", port))
|
||||
}
|
||||
|
||||
func routers(r *gin.Engine) {
|
||||
|
||||
Reference in New Issue
Block a user