You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* `tls_key`: path to client TLS certificate key, *default:* `client.key` *in the config file directory*
159
164
* `root_ca`: path to trusted root certificate authority pool file, if empty any server certificate is accepted
160
165
* `tunnels / [name]`
161
-
* `proto`: tunnel protocol, `http`or `tcp`
166
+
* `proto`: tunnel protocol, `http`, `tcp` or `sni`
162
167
* `addr`: forward traffic to this local port number or network address, for `proto=http` this can be full URL i.e. `https://machine/sub/path/?plus=params`, supports URL schemes `http` and `https`
163
168
* `auth`: (`proto=http`) (optional) basic authentication credentials to enforce on tunneled requests, format `user:password`
164
-
* `host`: (`proto=http`) hostname to request (requires reserved name and DNS CNAME)
169
+
* `host`: (`proto=http`, `proto=sni`) hostname to request (requires reserved name and DNS CNAME)
165
170
* `remote_addr`: (`proto=tcp`) bind the remote TCP address
166
171
* `backoff`
167
172
* `interval`: how long client would wait before redialing the server if connection was lost, exponential backoff initial interval, *default:* `500ms`
httpAddr:=flag.String("httpAddr", ":80", "Public address for HTTP connections, empty string to disable")
53
55
httpsAddr:=flag.String("httpsAddr", ":443", "Public address listening for HTTPS connections, emptry string to disable")
54
56
tunnelAddr:=flag.String("tunnelAddr", ":5223", "Public address listening for tunnel client")
57
+
sniAddr:=flag.String("sniAddr", "", "Public address listening for TLS SNI connections, empty string to disable")
55
58
tlsCrt:=flag.String("tlsCrt", "server.crt", "Path to a TLS certificate file")
56
59
tlsKey:=flag.String("tlsKey", "server.key", "Path to a TLS key file")
57
60
rootCA:=flag.String("rootCA", "", "Path to the trusted certificate chian used for client certificate authentication, if empty any client certificate is accepted")
0 commit comments