lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Peers only showing up as IP addresses in some cases

Open myleshorton opened this issue 13 years ago • 5 comments

The Get Mode peer in this screenshot is "[email protected]", which is on my roster, but the corresponding peer entry has no corresponding rosterEntry field:

Screen Shot 2013-03-27 at 4 04 52 PM

myleshorton avatar Mar 27 '13 19:03 myleshorton

Another problem is that peer entry has no peerid field, which messes up the frontend. The frontend expects that every peer have a unique peerid field set.

lanterndev avatar Mar 27 '13 20:03 lanterndev

@myleshorton Is this not true of all GET mode peers? The DefaultPeerFactory never sets a JID for GET mode peers, right?

ghostdance avatar Mar 28 '13 16:03 ghostdance

Yeah so the issue is that we don't always know the JID of get mode peers -- in many cases we won't actually. The issue is that you just get an incoming connection on the server -- so it's just a socket with little way of knowing who it came from.

myleshorton avatar Mar 28 '13 18:03 myleshorton

But if you don't know the JID, how do you prevent totally random people from connecting through you? That is, aren't you just an open proxy at that point?

On Thu, Mar 28, 2013 at 2:39 PM, myleshorton [email protected]:

Yeah so the issue is that we don't always know the JID of get mode peers -- in many cases we won't actually. The issue is that you just get an incoming connection on the server -- so it's just a socket with little way of knowing who it came from.

— Reply to this email directly or view it on GitHubhttps://github.com/getlantern/lantern/issues/640#issuecomment-15606590 .

leahxschmidt avatar Mar 28 '13 18:03 leahxschmidt

We mutually authenticate with their certs.

myleshorton avatar Mar 28 '13 23:03 myleshorton