client: reconnect more quickly if it's a dial error (#2240)

This commit is contained in:
fatedier
2021-02-18 16:15:35 +08:00
committed by GitHub
parent 976fd81d4d
commit 8fcd4f4a95
9 changed files with 20 additions and 14 deletions

View File

@@ -23,7 +23,6 @@ import (
"gopkg.in/ini.v1"
)
// Visitor
var (
visitorConfTypeMap = map[string]reflect.Type{
@@ -64,7 +63,6 @@ type XTCPVisitorConf struct {
BaseVisitorConf `ini:",extends" json:"inline"`
}
// DefaultVisitorConf creates a empty VisitorConf object by visitorType.
// If visitorType doesn't exist, return nil.
func DefaultVisitorConf(visitorType string) VisitorConf {

View File

@@ -19,8 +19,8 @@ import (
"github.com/fatedier/frp/pkg/consts"
"gopkg.in/ini.v1"
"github.com/stretchr/testify/assert"
"gopkg.in/ini.v1"
)
const testVisitorPrefix = "test."