1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00

allow relay to overwrite connections

This commit is contained in:
Zack Scholl 2018-04-27 15:36:57 -07:00
parent 08319cfd3f
commit 4840c33eee

View file

@ -134,10 +134,10 @@ func (r *Relay) clientCommuncation(id int, connection net.Conn) {
switch connectionType {
case "s": // sender connection
if r.connections.IsSenderConnected(key) {
sendMessage("no", connection)
return
}
// if r.connections.IsSenderConnected(key) {
// sendMessage("no", connection)
// return
// }
r.connections.Lock()
r.connections.metadata[key] = metaData