funcGetRenderedConfFromFile(pathstring)(outstring, errerror) {varb []byterawUrl := pathifstrings.Index(rawUrl,"http") !=-1{ log.Info("http schema") response, _err1 := http.Get(path)if_err1 !=nil{panic(_err1) }deferresponse.Body.Close() body, _err := ioutil.ReadAll(response....
session *fmux.Session, err error) {xl := xlog.FromContextSafe(svr.ctx)var tlsConfig *tls.Configif svr.cfg.TLSEnable {tlsConfig = &tls.Config{InsecureSkipVerify: true,}}conn, err = frpNet.ConnectServerByProxyWithTLS(svr.cfg.HttpProxy, svr.cfg.Protocol,fmt.Sprintf("%s:%d", svr.cfg.Se...
此网站无法提供安全连接 ERR SSL PROTOCOL ERROR。这个报错导致我一度认为是ssl证书的问题。浪费了我很多时间。 然而无论直到在onepannel的github issue发现了了类似的问题,才发现不能通过onepannel内置的Nginx服务来进行配置,而是要通过frpc内网穿透客户端的配置来解决问题。 域名申请与DNS解析,SSL申请 我申请了腾讯云的...
1)//修改后buf:=make([]byte,3)varnintc.SetReadDeadline(time.Now().Add(timeout))n,err=r.R...
service for config file [%s] stopped", cfgFile) } if a.frpcSvc == nil { log2.Println("[准备启动frpcSvc]") var err error a.frpcSvc, err = client.NewService(client.ServiceOptions{ Common: cfg, ProxyCfgs: proxyCfgs, VisitorCfgs: visitorCfgs, ConfigFilePath: cfgFile, }) if err !
Ensure that the backend (nginx/apache/litespeed) is configured with protocol, and then turn on proxy_protocol function. Otherwise you will get an error reminder similar to that of a protocol handshake failure (ERR_SSL_PROTOCOL_ERROR). fatedier closed this as completed Sep 21, 2020 adminBTI ...