feat/fix: support allow_insecure and fix ws path with query

This commit is contained in:
mzz2017
2023-02-12 17:17:51 +08:00
parent 16a85e3c68
commit 7656a6ecaf
11 changed files with 86 additions and 56 deletions

View File

@ -200,6 +200,9 @@ func NewControlPlane(
checkDnsTcp = true
}
}
if global.AllowInsecure {
log.Warnln("AllowInsecure is enabled, but it is not recommended. Please make sure you have to turn it on.")
}
option := &dialer.GlobalOption{
Log: log,
TcpCheckOptionRaw: dialer.TcpCheckOptionRaw{Raw: global.TcpCheckUrl},
@ -207,6 +210,7 @@ func NewControlPlane(
CheckInterval: global.CheckInterval,
CheckTolerance: global.CheckTolerance,
CheckDnsTcp: checkDnsTcp,
AllowInsecure: global.AllowInsecure,
}
outbounds := []*outbound.DialerGroup{
outbound.NewDialerGroup(option, consts.OutboundDirect.String(),