mirror of
https://github.com/fatedier/frp.git
synced 2025-07-21 21:32:58 +07:00
fix panic when using socks5 plugin with encryption and compression, fix #446
This commit is contained in:
@ -17,6 +17,8 @@ package plugin
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
frpNet "github.com/fatedier/frp/utils/net"
|
||||
)
|
||||
|
||||
// Creators is used for create plugins to handle connections.
|
||||
@ -40,6 +42,6 @@ func Create(name string, params map[string]string) (p Plugin, err error) {
|
||||
|
||||
type Plugin interface {
|
||||
Name() string
|
||||
Handle(conn io.ReadWriteCloser)
|
||||
Handle(conn io.ReadWriteCloser, realConn frpNet.Conn)
|
||||
Close() error
|
||||
}
|
||||
|
Reference in New Issue
Block a user