mirror of
https://github.com/fatedier/frp.git
synced 2025-07-15 10:19:26 +07:00
Add an "assets_dir" option for frpc
This option allows users to specify where they want assets to be loaded from, like the "assets_dir" option that already exists for frps. This allows library users to use the admin panel without having to bundle assets with statik.
This commit is contained in:
@ -96,7 +96,7 @@ func (svr *Service) Run() error {
|
||||
|
||||
if g.GlbClientCfg.AdminPort != 0 {
|
||||
// Init admin server assets
|
||||
err := assets.Load("")
|
||||
err := assets.Load(g.GlbClientCfg.AssetsDir)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Load assets error: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user