Skip to content

Commit

Permalink
Update ssclient.go
Browse files Browse the repository at this point in the history
  • Loading branch information
kataras authored Nov 4, 2017
1 parent 95819f2 commit f0c21e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (x *SSClient) ListenAndServe(sm Socks5Middleman) error {
return x.Server.Run(x)
}

// TCPHandle handles tcp reqeust
// TCPHandle handles tcp request
func (x *SSClient) TCPHandle(s *socks5.Server, c *net.TCPConn, r *socks5.Request) error {
if x.Socks5Middleman != nil {
done, err := x.Socks5Middleman.TCPHandle(s, c, r)
Expand Down Expand Up @@ -137,7 +137,7 @@ func (x *SSClient) TCPHandle(s *socks5.Server, c *net.TCPConn, r *socks5.Request
return socks5.ErrUnsupportCmd
}

// UDPHandle handles udp reqeust
// UDPHandle handles udp request
func (x *SSClient) UDPHandle(s *socks5.Server, addr *net.UDPAddr, d *socks5.Datagram) error {
if x.Socks5Middleman != nil {
if done, err := x.Socks5Middleman.UDPHandle(s, addr, d); err != nil || done {
Expand Down

0 comments on commit f0c21e2

Please sign in to comment.