Eittipat / pyrtmp

PyRTMP: Pure Python RTMP server
MIT License
90 stars 20 forks source link

Bug fixes in handling IPv6 addresses and multiple server sockets. #24

Open ipartola opened 2 months ago

ipartola commented 2 months ago

Currently session_manager.SessionManager.peername has a bug because for IPv6 sockets the address returned is a tuple of 4 values, not two. For UNIX sockets it is just a string. This patch fixes all these issues. It also prints exactly what addresses the server is listening on at startup, rather than just the first one.