修复交互模式打不开的bug

This commit is contained in:
e1732a364fed
2022-05-03 07:17:39 +08:00
parent 88d1e8829a
commit 7d780ffcd3
2 changed files with 2 additions and 2 deletions

View File

@@ -687,8 +687,6 @@ func passToOutClient(iics incomingInserverConnState, isfallback bool, wlc net.Co
if iics.isFallbackH2 {
//h2 的fallback 非常特殊,要单独处理. 下面进行h2c拨号并向真实h2c服务器发起请求。
//暂时不知道如何为 h2 设置 PROXY protocol
rq := iics.fallbackH2Request
rq.Host = targetAddr.Name
urlStr := "https://" + targetAddr.String() + iics.theRequestPath

View File

@@ -71,6 +71,7 @@ func LoadConfig(configFileName, listenURL, dialURL string, jsonMode int) (standa
if err != nil {
log.Printf("can not load standard config file: %s\n", err)
confMode = -1
return
}
@@ -93,6 +94,7 @@ func LoadConfig(configFileName, listenURL, dialURL string, jsonMode int) (standa
} else {
log.Printf("no -L listen URL provided \n")
err = errors.New("no -L listen URL provided")
confMode = -1
return
}
}