mirror of
https://github.com/net-byte/vtun
synced 2024-03-14 10:50:03 +08:00
fix a bug.
This commit is contained in:
parent
fdb5bfc246
commit
32321a7c5f
@ -23,7 +23,9 @@ func ConnectServer(config config.Config) net.Conn {
|
|||||||
host := config.ServerAddr
|
host := config.ServerAddr
|
||||||
if config.Protocol == "wss" {
|
if config.Protocol == "wss" {
|
||||||
scheme = "wss"
|
scheme = "wss"
|
||||||
host = config.TLSSni
|
if config.TLSSni != "" {
|
||||||
|
host = config.TLSSni
|
||||||
|
}
|
||||||
}
|
}
|
||||||
u := url.URL{Scheme: scheme, Host: host, Path: config.WebSocketPath}
|
u := url.URL{Scheme: scheme, Host: host, Path: config.WebSocketPath}
|
||||||
header := make(http.Header)
|
header := make(http.Header)
|
||||||
|
Loading…
Reference in New Issue
Block a user