improve ss

This commit is contained in:
ginuerzh
2021-11-01 21:57:28 +08:00
parent e2995ece96
commit ec8615991b
71 changed files with 554 additions and 316 deletions

View File

@ -0,0 +1,14 @@
package connector
import (
"context"
"net"
"github.com/go-gost/gost/pkg/metadata"
)
// Connector is responsible for connecting to the destination address.
type Connector interface {
Init(metadata.Metadata) error
Connect(ctx context.Context, conn net.Conn, network, address string, opts ...ConnectOption) (net.Conn, error)
}