添加常见问题

This commit is contained in:
bjdgyc 2021-04-12 18:33:05 +08:00
parent cf8487f8f4
commit 59acda4706
3 changed files with 11 additions and 8 deletions

View File

@ -204,9 +204,9 @@ eth_gateway="192.168.1.1"
sh bridge-init.sh
```
## Soft
## 常见问题
相关软件下载: QQ群共享文件: 567510628
请前往 [问题地址](question.md) 查看具体信息
## Discussion
@ -214,6 +214,8 @@ sh bridge-init.sh
添加QQ群: 567510628
QQ群共享文件有相关软件下载
## Contribution
欢迎提交 PR、Issues感谢为AnyLink做出贡献。

7
question.md Normal file
View File

@ -0,0 +1,7 @@
# 常见问题
* 远程桌面连接
> 本软件不支持远程桌面连接,请注意。
* 私有证书问题
> 可以通过 https://github.com/square/certstrap 生成私有的证书, 然后把CA证书放在客户端机器上即可以连接。

View File

@ -13,11 +13,6 @@ import (
"github.com/gorilla/mux"
)
func GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error) {
cert, err := tls.LoadX509KeyPair(base.Cfg.CertFile, base.Cfg.CertKey)
return &cert, err
}
func startTls() {
addr := base.Cfg.ServerAddr
certFile := base.Cfg.CertFile
@ -28,7 +23,6 @@ func startTls() {
NextProtos: []string{"http/1.1"},
MinVersion: tls.VersionTLS12,
InsecureSkipVerify: true,
GetCertificate: GetCertificate,
}
srv := &http.Server{
Addr: addr,