Time based user hash

This commit is contained in:
V2Ray committed 2015-09-14 18:19:17 +02:00
1 parent 89f9332abd
commit 097915bf7e
11 files changed
+142 -68

No files matched your search

+3 -3
View File
@@ -116,7 +116,7 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
input := ray.InboundInput()
output := ray.InboundOutput()
readFinish := make(chan bool)
writeFinish := make(chan bool)
writeFinish := make(chan bool)
go server.dumpInput(connection, input, readFinish)
go server.dumpOutput(connection, output, writeFinish)
@@ -128,12 +128,12 @@ func (server *SocksServer) HandleConnection(connection net.Conn) error {
func (server *SocksServer) dumpInput(conn net.Conn, input chan<- []byte, finish chan<- bool) {
v2net.ReaderToChan(input, conn)
close(input)
log.Debug("Socks input closed")
log.Debug("Socks input closed")
finish <- true
}
func (server *SocksServer) dumpOutput(conn net.Conn, output <-chan []byte, finish chan<- bool) {
v2net.ChanToWriter(conn, output)
log.Debug("Socks output closed")
log.Debug("Socks output closed")
finish <- true
}