func New(cfg global.Tunnel) *Tunnel {
	return &Tunnel{
		Name:  cfg.Name,
		cfg:   cfg,
		links: make(map[string]*Link),
	}
}
New new tunnel
package reverse
import (
	"natpass/code/client/global"
	"natpass/code/client/pool"
	"natpass/code/client/tunnel"
	"net"
	"sync"
	"github.com/lwch/logging"
	"github.com/lwch/runtime"
)
type Tunnel struct {
	sync.RWMutex
	Name  string
	cfg   global.Tunnel
	links map[string]*Link
}