mirror of https://github.com/bjdgyc/anylink.git
添加常见问题
This commit is contained in:
parent
cf8487f8f4
commit
59acda4706
|
@ -204,9 +204,9 @@ eth_gateway="192.168.1.1"
|
||||||
sh bridge-init.sh
|
sh bridge-init.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
## Soft
|
## 常见问题
|
||||||
|
|
||||||
相关软件下载: QQ群共享文件: 567510628
|
请前往 [问题地址](question.md) 查看具体信息
|
||||||
|
|
||||||
## Discussion
|
## Discussion
|
||||||
|
|
||||||
|
@ -214,6 +214,8 @@ sh bridge-init.sh
|
||||||
|
|
||||||
添加QQ群: 567510628
|
添加QQ群: 567510628
|
||||||
|
|
||||||
|
QQ群共享文件有相关软件下载
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
欢迎提交 PR、Issues,感谢为AnyLink做出贡献。
|
欢迎提交 PR、Issues,感谢为AnyLink做出贡献。
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# 常见问题
|
||||||
|
|
||||||
|
* 远程桌面连接
|
||||||
|
> 本软件不支持远程桌面连接,请注意。
|
||||||
|
|
||||||
|
* 私有证书问题
|
||||||
|
> 可以通过 https://github.com/square/certstrap 生成私有的证书, 然后把CA证书放在客户端机器上即可以连接。
|
|
@ -13,11 +13,6 @@ import (
|
||||||
"github.com/gorilla/mux"
|
"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() {
|
func startTls() {
|
||||||
addr := base.Cfg.ServerAddr
|
addr := base.Cfg.ServerAddr
|
||||||
certFile := base.Cfg.CertFile
|
certFile := base.Cfg.CertFile
|
||||||
|
@ -28,7 +23,6 @@ func startTls() {
|
||||||
NextProtos: []string{"http/1.1"},
|
NextProtos: []string{"http/1.1"},
|
||||||
MinVersion: tls.VersionTLS12,
|
MinVersion: tls.VersionTLS12,
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
GetCertificate: GetCertificate,
|
|
||||||
}
|
}
|
||||||
srv := &http.Server{
|
srv := &http.Server{
|
||||||
Addr: addr,
|
Addr: addr,
|
||||||
|
|
Loading…
Reference in New Issue