Get clients remote address from request (#385)

Signed-off-by: shishir gowda <shishir@livekit.io>
This commit is contained in:
shishirng
2022-01-29 10:51:21 -05:00
committed by GitHub
parent 3bfdb2523e
commit 7ac3631b6c
3 changed files with 6 additions and 3 deletions
+1
View File
@@ -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 ||