From cd6b118e633addeb05cf3249e4f17053097b5711 Mon Sep 17 00:00:00 2001 From: xjasonlyu Date: Sat, 20 May 2023 15:10:06 +0800 Subject: [PATCH] Refactor: relocate simple-obfs pkg --- proxy/shadowsocks.go | 2 +- {component => transport}/simple-obfs/http.go | 0 {component => transport}/simple-obfs/obfs.go | 0 {component => transport}/simple-obfs/tls.go | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename {component => transport}/simple-obfs/http.go (100%) rename {component => transport}/simple-obfs/obfs.go (100%) rename {component => transport}/simple-obfs/tls.go (100%) diff --git a/proxy/shadowsocks.go b/proxy/shadowsocks.go index 110c84e..f481e60 100644 --- a/proxy/shadowsocks.go +++ b/proxy/shadowsocks.go @@ -8,10 +8,10 @@ import ( "github.com/Dreamacro/go-shadowsocks2/core" - obfs "github.com/xjasonlyu/tun2socks/v2/component/simple-obfs" "github.com/xjasonlyu/tun2socks/v2/dialer" M "github.com/xjasonlyu/tun2socks/v2/metadata" "github.com/xjasonlyu/tun2socks/v2/proxy/proto" + obfs "github.com/xjasonlyu/tun2socks/v2/transport/simple-obfs" "github.com/xjasonlyu/tun2socks/v2/transport/socks5" ) diff --git a/component/simple-obfs/http.go b/transport/simple-obfs/http.go similarity index 100% rename from component/simple-obfs/http.go rename to transport/simple-obfs/http.go diff --git a/component/simple-obfs/obfs.go b/transport/simple-obfs/obfs.go similarity index 100% rename from component/simple-obfs/obfs.go rename to transport/simple-obfs/obfs.go diff --git a/component/simple-obfs/tls.go b/transport/simple-obfs/tls.go similarity index 100% rename from component/simple-obfs/tls.go rename to transport/simple-obfs/tls.go