mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
Revert "allow relay to overwrite connections"
This reverts commit 4840c33eee
.
This commit is contained in:
parent
4840c33eee
commit
349e3a81c7
1 changed files with 4 additions and 4 deletions
8
relay.go
8
relay.go
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue