mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
tls: support customization of serverName (#169)
This commit is contained in:
1 parent
92a43608f3
commit
e23a29f057
6 files changed
+15
-11
No files matched your search
@@ -55,6 +55,10 @@ func NewTLS(s string, d proxy.Dialer, p proxy.Proxy) (*TLS, error) {
|
||||
certFile := query.Get("cert")
|
||||
keyFile := query.Get("key")
|
||||
|
||||
if customServer := query.Get("serverName"); customServer != "" {
|
||||
serverName = customServer
|
||||
}
|
||||
|
||||
t := &TLS{
|
||||
dialer: d,
|
||||
proxy: p,
|
||||
|
||||
Reference in new issue
Block a user