fixed bug masked by changes I opted not to commit

This commit is contained in:
tigerbot 2017-04-17 14:57:32 -06:00
parent c024c1b88f
commit 3e30137b36
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@ package server
import ( import (
"context" "context"
"fmt"
"io" "io"
"strconv"
"sync" "sync"
"time" "time"
@ -252,7 +252,7 @@ func (c *Connection) Reader(ctx context.Context) {
// unpack the message. // unpack the message.
p, err := packer.ReadMessage(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) track, err := connectionTrack.Lookup(key)
//loginfo.Println(hex.Dump(p.Data.Data())) //loginfo.Println(hex.Dump(p.Data.Data()))