Commit graph

14 commits

Author SHA1 Message Date
27ece358c6
fix(resolvers): QUIC: close as soon as the writing is done
All checks were successful
continuous-integration/drone/push Build is passing
This is required by RFC 9250, and would break some requests when done wrong

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-03-09 23:39:00 +01:00
3423958809
fix(deps): Use my fork of the dnscrypt lib (#185)
All checks were successful
continuous-integration/drone/push Build is passing
- Uses newer versions of libraries
- Nicer URL (subjective)
- it is mine :)

Reviewed-on: #185
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2023-03-06 22:41:12 +00:00
e782c9cb23
feat: change import URL
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-17 19:18:58 +01:00
6d9690c44f
fix: lint
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-04 15:37:06 -06:00
bc6e7cd759
fix(deps): Use new quic-go location + update
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-02-04 14:27:47 +01:00
fdba9a0a41
refactor: Add named returns (#168)
All checks were successful
continuous-integration/drone/push Build is passing
Add some named returns

Co-authored-by: grumbulon <grumbulon@grumbulon.xyz>
Reviewed-on: #168
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-17 16:52:50 +00:00
64768f0956
fix(errors): put exported errors in util (#161)
All checks were successful
continuous-integration/drone/push Build is passing
Centralize them in one place

Reviewed-on: #161
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-06 21:39:28 +00:00
dfa14cbcdf
feat(gccgo): allow compilation with gccgo (#156)
All checks were successful
continuous-integration/drone/push Build is passing
This PR disables quic-go when compiling with gccgo since gccgo does not support generics

Reviewed-on: #156
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-19 18:25:04 +00:00
b1fa25a9a0
feat(dig): Dig +https (#147)
All checks were successful
continuous-integration/drone/push Build is passing
BREAKING CHANGE: DNS-over-HTTPS requests are now dealt with differently

Using +https or -H now implies adding /dns-query (like dig)
Using the implied https:// prefix follows the old behaviour (nothing added or implied)

Reviewed-on: #147
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-20 21:34:24 +00:00
Sam
b80219019e
Add check for port at the end (#142)
All checks were successful
continuous-integration/drone/push Build is passing
Fixes #141

Before, a failure would add on the port, eg.
```
127.0.0.1:53
127.0.0.1:53:53
127.0.0.1:53:53:53 // Go actually thinks this is now an IPv6 address, interesting
```

Now a check is added so this doesn't happen

Reviewed-on: #142
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-16 14:25:13 +00:00
Sam
81da49093d
refactor: Make all calls to options pointers (#132)
All checks were successful
continuous-integration/drone/push Build is passing
Instead of copying the opts struct every time it gets passed around, it should be created once and passed through reference.

This should reduce memory utilization, unfortunately I cannot test it since this program runs so fast pprof won't report anything useful.

I think I found all of them 🙂

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #132
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-13 12:49:36 +00:00
Sam
f01f2bc15a
feat(resolvers/HTTPS): add HTTP proxy support (#119)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #119
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-09-28 18:08:56 +00:00
Sam
c053c077c8
test: Add retries to all tests (#121)
All checks were successful
continuous-integration/drone/push Build is passing
Reviewed-on: #121
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-09-28 17:51:35 +00:00
3a0a8f015a chore(Refactor) (#110)
All checks were successful
continuous-integration/drone/push Build is passing
refactor

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #110
Reviewed-by: Sam <sam@samtherapy.net>
2022-09-24 23:11:09 +00:00