mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-08-25 16:35:07 +03:00
Implement Admin API integration in WebUI for enhanced node management
This commit is contained in:
parent
3187114780
commit
675e2e71a5
10 changed files with 1055 additions and 47 deletions
|
@ -309,6 +309,12 @@ func main() {
|
|||
}
|
||||
|
||||
n.webui = webui.Server(listenAddr, cfg.WebUI.Password, logger)
|
||||
|
||||
// Connect WebUI with AdminSocket for direct API access
|
||||
if n.admin != nil {
|
||||
n.webui.SetAdmin(n.admin)
|
||||
}
|
||||
|
||||
if cfg.WebUI.Password != "" {
|
||||
logger.Infof("WebUI password authentication enabled")
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue