mirror of https://github.com/schollz/croc.git
remove old comments
This commit is contained in:
parent
da9634c949
commit
4f9532b761
|
@ -196,18 +196,11 @@ func receive(serverAddress, serverTCP string, isLocal bool, c *websocket.Conn, c
|
|||
} else {
|
||||
// read from TCP connection
|
||||
message, err = tcpConnection.Read()
|
||||
// if bytes.Equal(message, []byte("end")) {
|
||||
// break
|
||||
// }
|
||||
}
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
return err
|
||||
}
|
||||
fmt.Println(string(message))
|
||||
|
||||
// // tell the sender that we recieved this packet
|
||||
// c.WriteMessage(websocket.BinaryMessage, []byte("ok"))
|
||||
|
||||
// do decryption
|
||||
var enc crypt.Encryption
|
||||
|
|
|
@ -34,6 +34,9 @@ func Run(debugLevel, port string) {
|
|||
if err != nil {
|
||||
log.Error(err)
|
||||
}
|
||||
|
||||
// TODO:
|
||||
// delete old rooms
|
||||
}
|
||||
|
||||
func run(port string) (err error) {
|
||||
|
|
Loading…
Reference in New Issue