mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-01-06 01:05:35 -05:00
remove useless code
This commit is contained in:
@@ -27,12 +27,6 @@ type Listener interface {
|
||||
Addr() net.Addr
|
||||
}
|
||||
|
||||
type TCPHub struct {
|
||||
listener Listener
|
||||
connCallback ConnectionHandler
|
||||
closed chan bool
|
||||
}
|
||||
|
||||
func ListenTCP(ctx context.Context, address v2net.Address, port v2net.Port, conns chan<- Connection) (Listener, error) {
|
||||
settings := StreamSettingsFromContext(ctx)
|
||||
protocol := settings.GetEffectiveProtocol()
|
||||
|
||||
Reference in New Issue
Block a user