mirror of
https://github.com/therootcompany/telebit.git
synced 2025-03-03 23:30:49 +00:00
fixed bug masked by changes I opted not to commit
This commit is contained in:
parent
c024c1b88f
commit
3e30137b36
@ -2,8 +2,8 @@ package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"io"
|
||||
"strconv"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@ -252,7 +252,7 @@ func (c *Connection) Reader(ctx context.Context) {
|
||||
|
||||
// unpack the message.
|
||||
p, err := packer.ReadMessage(message)
|
||||
key := p.Header.Address().String() + ":" + strconv.Itoa(p.Header.Port)
|
||||
key := fmt.Sprintf("%s:%d", p.Address(), p.Port())
|
||||
track, err := connectionTrack.Lookup(key)
|
||||
|
||||
//loginfo.Println(hex.Dump(p.Data.Data()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user