mirror of
https://github.com/fatedier/frp.git
synced 2024-12-16 03:31:07 +01:00
modify
This commit is contained in:
parent
d1f5ec083a
commit
1af6276be9
@ -46,11 +46,13 @@ func NewProxyPlugin(params map[string]string) (p plugin.Plugin, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
p = &Proxy{
|
proxy := &Proxy{
|
||||||
Server: NewProxyServer(),
|
Server: NewProxyServer(),
|
||||||
Ln: listen,
|
Ln: listen,
|
||||||
}
|
}
|
||||||
return
|
go proxy.Server.Serve(proxy.Ln)
|
||||||
|
|
||||||
|
return proxy, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (proxy *Proxy) Name() string {
|
func (proxy *Proxy) Name() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user