auth info bug fixed

This commit is contained in:
Abdussamed 2023-04-28 21:56:12 +03:00
parent 1e068a634b
commit 91e553aa0c
2 changed files with 2 additions and 3 deletions

View File

@ -214,7 +214,8 @@ addService(({
if(client.isSecure(message.peer)) if(client.isSecure(message.peer))
{ {
let info = {}; let info = {};
client.info.forEach((value, name) => info[name] = value); let peer = Client.clients.get(message.peer);
peer.info.forEach((value, name) => info[name] = value);
return end({ return end({
status: "success", status: "success",
info info

View File

@ -46,8 +46,6 @@ export default class WebRTC
public peer? : Peer; public peer? : Peer;
public FileTransportChannel? : P2PFileSender;
constructor( constructor(
rtcConfig?: RTCConfiguration, rtcConfig?: RTCConfiguration,
rtcServers?: RTCIceServer[] rtcServers?: RTCIceServer[]