Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1007 +/- ##
==========================================
+ Coverage 93.76% 93.85% +0.08%
==========================================
Files 72 75 +3
Lines 5890 6041 +151
==========================================
+ Hits 5523 5670 +147
- Misses 284 287 +3
- Partials 83 84 +1 ☔ View full report in Codecov by Sentry. |
|
You can take a look at the rewriter, it has some tests that hook into the inner and next resolvers. |
Thanks, that's axactly what I was looking for. ❤️ |
|
Having support for ECS would seriously benefit my use case for Blocky! Just wanted to drop a big thank you for working on this! |
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
Still very much needed |
|
Would also love this in my network! |
same! |
|
@bjw-s @buroa @fisherbln Sorry guys i got almost no time at least until end of next month. I'll work on it again as soon as time allows it. |
|
@kwitsch Any update on this? |
|
Sorry I replied to it yesterday but it seems it's missing? 🤨
Sorry to let you down but I still had no time to work on blocky again. 😔 I'm currently only able to be online with my mobile phone which is not suitable for working on blocky. 🫣 |
|
@kwitsch I skimmed over your PR and I think I can continue to work on it. I have some questions/discussion points:
|
I viewed it the other way around: especially in local network setups this feature is handy 😅 Example for an IPv4 network:
Agreed 👍
I think for Nat purpose a second instance for resolution would be the better choice (as described in the first example). |
|
@0xERR0R I can provide an example project (docker compose & blocky config) Edit: |
|
I'm back at home and should have more time working on blocky again. 🥳 @0xERR0R as promised an simple example: ecs-example.zip (should be placed in a sub directory of this branch) Description:
Expected behavior: if a request is done to both ports blocky should log the same client_ip for both requests I would only disable caching if the ecs mask contains more than one IP(v4 <32 & v6 <128). |
Definitely. I have a lot of clients in my network and would love to capture the IP; but I also do a ton of caching... so if it's favor of caching vs ecs, then I would pick ecs. Hopefully we can have both of these features enabled at the same time :) |
|
Nevermind, you're right! |
ThinkChaos
left a comment
There was a problem hiding this comment.
Just a couple details I noticed going through everything again.
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
Co-authored-by: ThinkChaos <ThinkChaos@users.noreply.github.com>
|
@ThinkChaos I think I resolved all of your comments. :) |
|
Yes looks all good to me! |
|
@kwitsch Big BIG thanks to this!! |
I'm glad I could finally finish it & that it's appreciated. 😊 |
Closes #952
Closes #1146
Depends on #1245mergedChanges:
Old entry:
Tested it with some blocky containers in a chain and it works well.I'm currently at a loss how to write propper unit tests as most of the testing has to be done in the mock resolver that is configured as next(?). 🤔Ideas & hints how to do it properly are appreciate. 😅