MCPcopy
hub / github.com/leaningtech/webvm / netmapUpdateCb

Function netmapUpdateCb

src/lib/network.js:64–80  ·  view source on GitHub ↗
(map)

Source from the content-addressed store, hash-verified

62}
63
64function netmapUpdateCb(map)
65{
66 networkData.currentIp = map.self.addresses[0];
67 var exitNodeFound = false;
68 for(var i=0; i < map.peers.length;i++)
69 {
70 if(map.peers[i].exitNode)
71 {
72 exitNodeFound = true;
73 break;
74 }
75 }
76 if(exitNodeFound)
77 {
78 exitNode.set(true);
79 }
80}
81
82export async function startLogin()
83{

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected