Skip to content

Commit

Permalink
Fix comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfdecyf committed Dec 7, 2012
1 parent 4e9cad4 commit df075d7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/shadowsocks/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand All @@ -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)
Expand Down

0 comments on commit df075d7

Please sign in to comment.