From df075d7aa7959ef2cdf236446b4089ad2c73e088 Mon Sep 17 00:00:00 2001 From: Chen Yufei Date: Fri, 7 Dec 2012 13:24:17 +0800 Subject: [PATCH] Fix comment. --- src/shadowsocks/conn.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/shadowsocks/conn.go b/src/shadowsocks/conn.go index 5ba7e6e..0fcce98 100644 --- a/src/shadowsocks/conn.go +++ b/src/shadowsocks/conn.go @@ -45,7 +45,7 @@ func addrBufFromString(addr string) (buf []byte, err error) { return } -// Expose this for use by local.go and server.go +// Export this for use by local.go and server.go func DialWithAddrBuf(addrBuf []byte, server string) (c Conn, err error) { if encTable == nil { panic("shadowsocks internal error, must call InitTable first.") @@ -71,9 +71,6 @@ func Dial(addr string, server string) (c Conn, err error) { return DialWithAddrBuf(addrBuf, server) } -// TODO addrBufFromIP and DialWithIP -// can be used to rewrite local.go - func (c Conn) Read(b []byte) (n int, err error) { buf := make([]byte, len(b), len(b)) n, err = c.Conn.Read(buf)