mirror of
https://gitee.com/IrisVega/frp.git
synced 2024-11-01 22:31:29 +08:00
fix static assets (#3816)
This commit is contained in:
parent
97d3cf1a3b
commit
6d9e0c20f6
@ -46,9 +46,7 @@ type Server struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewServer(cfg v1.WebServerConfig) (*Server, error) {
|
func NewServer(cfg v1.WebServerConfig) (*Server, error) {
|
||||||
if cfg.AssetsDir != "" {
|
assets.Load(cfg.AssetsDir)
|
||||||
assets.Load(cfg.AssetsDir)
|
|
||||||
}
|
|
||||||
|
|
||||||
addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port))
|
addr := net.JoinHostPort(cfg.Addr, strconv.Itoa(cfg.Port))
|
||||||
if addr == ":" {
|
if addr == ":" {
|
||||||
|
Loading…
Reference in New Issue
Block a user