Commit graph

23 commits

Author SHA1 Message Date
Matthew Wild
a2ef355d20 Merge 0.11->trunk 2020-07-10 13:01:17 +01:00
Matthew Wild
a80cdecc46 net.resolvers.basic: Default conn_type to 'tcp' consistently if unspecified (thanks marc0s)
Fixes a traceback when passed an IP address with no conn_type.
2020-07-10 13:00:02 +01:00
Kim Alvefur
300a9a56c5 net.resolvers: Remove FIXMEs obsoleted by switch to libunbound 2020-06-25 19:24:58 +02:00
Kim Alvefur
7b89ab9b86 net.connect: Remove TODO about use_ipv4/6 done in 3bfb20be844c 2020-06-22 01:42:18 +02:00
Kim Alvefur
6137789b45 net.resolvers.basic: Fix continuing if IPv6 or Legacy IP is disabled
The code expects ready() to be called twice, but with IPv4 or v6
disabled it would only be called once.
2020-01-26 14:35:35 +01:00
Matthew Wild
d1fbb9197f net.resolvers.basic: Obey extra.use_ipv4/use_ipv6 2020-01-25 14:38:17 +00:00
Matthew Wild
b20f96afc1 net.resolvers.basic: Obey use_ipv4/use_ipv6 2020-01-25 14:03:30 +00:00
Kim Alvefur
9d5c3cb856 net.connect: Mention RFC 6724 regression
Default Address Selection algorithm is not applied, resulting in a
strong bias towards IPv4.
2019-12-07 17:39:29 +01:00
Kim Alvefur
40ffc88bad net.connect: Add some TODOs and FIXMEs
And mention issue numbers: #1246, #1428 and #1429
2019-12-07 17:05:00 +01:00
Kim Alvefur
10aa40227b Merge 0.11->trunk 2019-11-24 04:46:36 +01:00
Kim Alvefur
c3581958f7 net.resolvers.basic: Normalise IP literals, ensures net.server is happy 2019-11-24 04:41:07 +01:00
Kim Alvefur
42b9614fe2 Merge 0.11->trunk 2019-11-24 04:30:32 +01:00
Kim Alvefur
9c9722935a net.resolvers.basic: Fix resolution of IPv6 literals (in brackets) (fixes #1459) 2019-11-24 04:26:44 +01:00
Kim Alvefur
7c056be161 net.resolvers.basic: Move IP literal check to constructor
This is to prepare for fixing #1459. An IPv6 literal in [ ] brackets
does not pass IDNA and resolving it fails there.
2019-11-24 04:23:51 +01:00
Kim Alvefur
2a8b031b75 net.resolvers: Fix traceback from hostname failing IDNA
Related to #1426
2019-11-08 00:54:56 +01:00
Kim Alvefur
9c2a74d09c net.resolvers: Abort on hostnames not passing IDNA validation
Prevents error on trying to use nil.

Needs better error reporting in the future.
2019-11-02 19:36:19 +01:00
Kim Alvefur
ba431b5efc net.resolvers: Apply IDNA conversion to ascii for DNS lookups (fixes #1426) 2019-11-02 19:24:26 +01:00
Kim Alvefur
03197f584d Merge 0.11->trunk 2019-11-08 00:58:03 +01:00
Kim Alvefur
690775a9b4 Merge 0.11->trunk 2019-11-02 19:38:12 +01:00
Kim Alvefur
83e1a2af50 net.resolvers.basic: Suffix IPv4 TCP socket types with '4' to match eg 'tcp6' 2018-10-12 16:25:30 +02:00
Kim Alvefur
5cb2160a0b net.resolvers.basic: Support IP address literals 2018-05-02 19:06:59 +02:00
Matthew Wild
c27281a720 net.connect: New API for outgoing connections, based on 'service resolvers' 2018-02-23 15:53:45 +00:00
Kim Alvefur
2b289f34f9 various: Don't rely on _G.unpack existing 2018-12-08 17:09:55 +01:00