lyqyd / ComputerCraft-LyqydNet

A set of APIs and scripts for ComputerCraft to establish and operate an in-game computer network with routing.
22 stars 4 forks source link

Connection.listen() returned connection is mangled. #16

Closed davehayes closed 10 years ago

davehayes commented 10 years ago

I observed this when I do something like

   local p, conn = connection.listen(port)
   local host = conn:name()

When a new connection arrives, "host" is false.

Tracking this down, it appears on line 150 that the first argument to connection.new() should be "i:"..event[2].origin. When I did that, I was able to get an unmangled connection.

lyqyd commented 10 years ago

You are correct, fixed.