diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2023-11-24 18:25:12 -0800 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-12-13 10:54:48 +0900 |
| commit | f0f9e2f50c7b19a311a421b2dc7ddfea6bbb2a28 (patch) | |
| tree | e6fe1e5599d02fd3ee4a19a5a81207d194d86a0f /test | |
| parent | 0ea5c13bc6c4707aa8d2dce9b0c5af7513fb5f66 (diff) | |
[ruby/resolv] Allow setting default Resolv::DNS config in Resolv.new
If a positional argument is provided, the use_ipv6 keyword
option is ignored:
```ruby
Resolv.new([Resolv::DNS.new], use_ipv6: false)
```
Issue a warning in this case.
Currently, you have to pass a positional hash argument to set
the DNS config. However, after support for the use_ipv6 keyword
argument is removed, you will be able to pass either a positional
hash or keyword arguments. Code that was just specifying the
use_ipv6 keyword optional will still work correctly in that case.
https://github.com/ruby/resolv/commit/5ff9dda991
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
