Get clients remote address from request (#385)
Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
@@ -283,6 +283,7 @@ func (s *RTCService) ParseClientInfo(r *http.Request) *livekit.ClientInfo {
|
||||
ci.Browser = values.Get("browser")
|
||||
ci.BrowserVersion = values.Get("browser_version")
|
||||
ci.DeviceModel = values.Get("device_model")
|
||||
ci.Address = r.RemoteAddr
|
||||
|
||||
// attempt to parse types for SDKs that support browser as a platform
|
||||
if ci.Sdk == livekit.ClientInfo_JS ||
|
||||
|
||||
Reference in New Issue
Block a user