Skip to content

Commit f2deef5

Browse files
authored
fix: fixed the typo "verfiy" to "verify". (#87)
This bug leads to the TLS certificate verficiation is always enabled.
1 parent 9660691 commit f2deef5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api_v2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Method
3636
- `timeout`: int
3737
request timeout seconds.
3838
- `serializer`: string - serializer type, default `json`, also support `raw` to keep origin string value.
39-
- `ssl_verify`: boolean - whether to verify the etcd certificate when originating TLS connection with etcd (if you want to communicate to etcd with TLS connection, use `https` scheme in your `http_host`).
39+
- `ssl_verify`: boolean - whether to verify the etcd certificate when originating TLS connection with etcd (if you want to communicate to etcd with TLS connection, use `https` scheme in your `http_host`), default is `true`.
4040

4141
The client methods returns either a `HTTP Response Entity` or an `error string`.
4242

api_v3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Method
4040
- `api_prefix`: string
4141
to suit [etcd v3 api gateway](https://github.com/etcd-io/etcd/blob/master/Documentation/dev-guide/api_grpc_gateway.md#notes).
4242
it will autofill by fetching etcd version if this option empty.
43-
- `ssl_verify`: boolean - whether to verify the etcd certificate when originating TLS connection with etcd (if you want to communicate to etcd with TLS connection, use `https` scheme in your `http_host`).
43+
- `ssl_verify`: boolean - whether to verify the etcd certificate when originating TLS connection with etcd (if you want to communicate to etcd with TLS connection, use `https` scheme in your `http_host`), default is `true.
4444

4545
The client methods returns either a `etcd` object or an `error string`.
4646

lib/resty/etcd/v3.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function _M.new(opts)
107107
local http_host = opts.http_host
108108
local user = opts.user
109109
local password = opts.password
110-
local ssl_verify = opts.ssl_verfiy
110+
local ssl_verify = opts.ssl_verify
111111

112112
if not typeof.uint(timeout) then
113113
return nil, 'opts.timeout must be unsigned integer'

0 commit comments

Comments
 (0)