Browse Source

Refactor: move to transport

pull/76/head v2.3.0
xjasonlyu 3 years ago
parent
commit
bf59ddf897
  1. 2
      constant/metadata.go
  2. 2
      proxy/shadowsocks.go
  3. 2
      proxy/socks4.go
  4. 2
      proxy/socks5.go
  5. 0
      transport/socks4/socks4.go
  6. 0
      transport/socks4/socks4.txt
  7. 0
      transport/socks4/socks4a.txt
  8. 0
      transport/socks5/rfc1928.txt
  9. 0
      transport/socks5/rfc1929.txt
  10. 0
      transport/socks5/socks5.go

2
constant/metadata.go

@ -7,7 +7,7 @@ import (
"net" "net"
"strconv" "strconv"
"github.com/xjasonlyu/tun2socks/component/socks5" "github.com/xjasonlyu/tun2socks/transport/socks5"
) )
const ( const (

2
proxy/shadowsocks.go

@ -8,9 +8,9 @@ import (
"github.com/xjasonlyu/tun2socks/component/dialer" "github.com/xjasonlyu/tun2socks/component/dialer"
obfs "github.com/xjasonlyu/tun2socks/component/simple-obfs" obfs "github.com/xjasonlyu/tun2socks/component/simple-obfs"
"github.com/xjasonlyu/tun2socks/component/socks5"
M "github.com/xjasonlyu/tun2socks/constant" M "github.com/xjasonlyu/tun2socks/constant"
"github.com/xjasonlyu/tun2socks/proxy/proto" "github.com/xjasonlyu/tun2socks/proxy/proto"
"github.com/xjasonlyu/tun2socks/transport/socks5"
"github.com/Dreamacro/go-shadowsocks2/core" "github.com/Dreamacro/go-shadowsocks2/core"
) )

2
proxy/socks4.go

@ -6,9 +6,9 @@ import (
"net" "net"
"github.com/xjasonlyu/tun2socks/component/dialer" "github.com/xjasonlyu/tun2socks/component/dialer"
"github.com/xjasonlyu/tun2socks/component/socks4"
M "github.com/xjasonlyu/tun2socks/constant" M "github.com/xjasonlyu/tun2socks/constant"
"github.com/xjasonlyu/tun2socks/proxy/proto" "github.com/xjasonlyu/tun2socks/proxy/proto"
"github.com/xjasonlyu/tun2socks/transport/socks4"
) )
var _ Proxy = (*Socks4)(nil) var _ Proxy = (*Socks4)(nil)

2
proxy/socks5.go

@ -7,9 +7,9 @@ import (
"net" "net"
"github.com/xjasonlyu/tun2socks/component/dialer" "github.com/xjasonlyu/tun2socks/component/dialer"
"github.com/xjasonlyu/tun2socks/component/socks5"
M "github.com/xjasonlyu/tun2socks/constant" M "github.com/xjasonlyu/tun2socks/constant"
"github.com/xjasonlyu/tun2socks/proxy/proto" "github.com/xjasonlyu/tun2socks/proxy/proto"
"github.com/xjasonlyu/tun2socks/transport/socks5"
) )
var _ Proxy = (*Socks5)(nil) var _ Proxy = (*Socks5)(nil)

0
component/socks4/socks4.go → transport/socks4/socks4.go

0
component/socks4/socks4.txt → transport/socks4/socks4.txt

0
component/socks4/socks4a.txt → transport/socks4/socks4a.txt

0
component/socks5/rfc1928.txt → transport/socks5/rfc1928.txt

0
component/socks5/rfc1929.txt → transport/socks5/rfc1929.txt

0
component/socks5/socks5.go → transport/socks5/socks5.go

Loading…
Cancel
Save