From 53eff7bb3e9e6b80a020d77309ee5d9034666281 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Tue, 22 Sep 2015 18:43:30 +0200 Subject: [PATCH] format code --- proxy/freedom/freedom.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/proxy/freedom/freedom.go b/proxy/freedom/freedom.go index d9107104..ec891c60 100644 --- a/proxy/freedom/freedom.go +++ b/proxy/freedom/freedom.go @@ -47,15 +47,15 @@ func (vconn *FreedomConnection) Start(ray core.OutboundRay) error { go dumpInput(conn, input, writeFinish) go dumpOutput(conn, output, readFinish) - go func() { - <-writeFinish - if tcpConn, ok := conn.(*net.TCPConn); ok { - tcpConn.CloseWrite() - } - <-readFinish - conn.Close() - }() - + go func() { + <-writeFinish + if tcpConn, ok := conn.(*net.TCPConn); ok { + tcpConn.CloseWrite() + } + <-readFinish + conn.Close() + }() + return nil }