mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
proxy: added PackerServer interface
This commit is contained in:
1 parent
253e5008c4
commit
cf1a4e3817
11 files changed
+52
-22
No files matched your search
@@ -31,13 +31,6 @@ type Trojan struct {
|
||||
fallback string
|
||||
}
|
||||
|
||||
func init() {
|
||||
proxy.RegisterDialer("trojan", NewTrojanDialer)
|
||||
proxy.RegisterServer("trojan", NewTrojanServer)
|
||||
proxy.RegisterDialer("trojanc", NewClearTextDialer) // cleartext
|
||||
proxy.RegisterServer("trojanc", NewClearTextServer) // cleartext
|
||||
}
|
||||
|
||||
// NewTrojan returns a trojan proxy.
|
||||
func NewTrojan(s string, d proxy.Dialer, p proxy.Proxy) (*Trojan, error) {
|
||||
u, err := url.Parse(s)
|
||||
|
||||
Reference in new issue
Block a user