Skip to content

Commit

Permalink
启动web前开通端口
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Mar 21, 2020
1 parent e3a9642 commit 92eeb1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/gobuffalo/packr/v2"
"net/http"
"strconv"
"trojan/util"
"trojan/web/controller"
)

Expand Down Expand Up @@ -79,5 +80,6 @@ func Start(port int) {
userRouter(router)
dataRouter(router)
commonRouter(router)
util.OpenPort(port)
_ = router.Run(fmt.Sprintf(":%d", port))
}

0 comments on commit 92eeb1a

Please sign in to comment.