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,8 +23,10 @@ func ConnectServer(config config.Config) net.Conn {
|
||||
host := config.ServerAddr
|
||||
if config.Protocol == "wss" {
|
||||
scheme = "wss"
|
||||
if config.TLSSni != "" {
|
||||
host = config.TLSSni
|
||||
}
|
||||
}
|
||||
u := url.URL{Scheme: scheme, Host: host, Path: config.WebSocketPath}
|
||||
header := make(http.Header)
|
||||
header.Set("user-agent", "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36")
|
||||
|
Loading…
Reference in New Issue
Block a user