mirror of
https://github.com/tobychui/zoraxy.git
synced 2025-08-09 06:37:47 +02:00
Updated API register function
- Seperated different register for APIs
This commit is contained in:
@@ -367,12 +367,22 @@ func HandleZoraxyInfo(w http.ResponseWriter, r *http.Request) {
|
||||
ZerotierConnected bool
|
||||
}
|
||||
|
||||
displayUUID := nodeUUID
|
||||
displayAllowSSHLB := *allowSshLoopback
|
||||
displayBootTime := bootTime
|
||||
|
||||
if !authAgent.CheckAuth(r) {
|
||||
displayUUID = "Unauthorized"
|
||||
displayAllowSSHLB = false
|
||||
displayBootTime = 0
|
||||
}
|
||||
|
||||
info := ZoraxyInfo{
|
||||
Version: SYSTEM_VERSION,
|
||||
NodeUUID: nodeUUID,
|
||||
NodeUUID: displayUUID,
|
||||
Development: DEVELOPMENT_BUILD,
|
||||
BootTime: bootTime,
|
||||
EnableSshLoopback: *allowSshLoopback,
|
||||
BootTime: displayBootTime,
|
||||
EnableSshLoopback: displayAllowSSHLB,
|
||||
ZerotierConnected: ganManager.ControllerID != "",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user