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 {
|
} else {
|
||||||
// read from TCP connection
|
// read from TCP connection
|
||||||
message, err = tcpConnection.Read()
|
message, err = tcpConnection.Read()
|
||||||
// if bytes.Equal(message, []byte("end")) {
|
|
||||||
// break
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
fmt.Println(string(message))
|
|
||||||
|
|
||||||
// // tell the sender that we recieved this packet
|
|
||||||
// c.WriteMessage(websocket.BinaryMessage, []byte("ok"))
|
|
||||||
|
|
||||||
// do decryption
|
// do decryption
|
||||||
var enc crypt.Encryption
|
var enc crypt.Encryption
|
||||||
|
|
|
@ -34,6 +34,9 @@ func Run(debugLevel, port string) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO:
|
||||||
|
// delete old rooms
|
||||||
}
|
}
|
||||||
|
|
||||||
func run(port string) (err error) {
|
func run(port string) (err error) {
|
||||||
|
|
Loading…
Reference in New Issue