add client ip to agent worker registration (#3675)

This commit is contained in:
Paul Wells
2025-05-20 07:58:28 -07:00
committed by GitHub
parent 6b849a87e8
commit e4f7d81bdd
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -145,6 +145,7 @@ type WorkerRegistration struct {
Namespace string
JobType livekit.JobType
Permissions *livekit.ParticipantPermission
ClientIP string
}
func MakeWorkerRegistration() WorkerRegistration {
+1
View File
@@ -77,6 +77,7 @@ func (u AgentSocketUpgrader) Upgrade(
}
registration = agent.MakeWorkerRegistration()
registration.ClientIP = GetClientIP(r)
// upgrade
conn, err := u.Upgrader.Upgrade(w, r, responseHeader)