The DNS proxy can report active while its TCP listener has failed

Open
#265 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
swift

Research direction

Start in Sources/Helper/DNSProxy.swift:157-175, where the listener state handlers and running status are managed. Trace how UDP and TCP listener states reach the helper status reply, then check how failures can be reported with their transport and reason. Done means status accurately reflects which transports are serving DNS requests; the issue notes the bug has not been reproduced on a signed build.

Written by the indexing model from the issue text.

Description

area:helper bug priority:medium status:queued type:diagnostics

Only the UDP listener installs a state handler. A later TCP .failed state is not logged or reflected in running, which was set true after start() returned. The status reply therefore continues to say the DNS proxy is active while TCP DNS clients receive no service.

Steps

  1. Enforcement starts both listeners successfully.
  2. The TCP listener later enters .failed while UDP remains available.
  3. No handler records the failure or clears proxy status.
  4. A client using TCP DNS cannot resolve names, while the GUI status continues to show the proxy active.

Where

  • Sources/Helper/DNSProxy.swift:157-175

Done when: Failure of either listener is recorded with its transport and reason, and helper status accurately indicates which DNS transports are serving requests.

I found this reading the code and haven't reproduced it on a signed build yet.

Dominant language
Swift
Stars
49
Forks
5
Avg merge
16h 48m
Merged PRs (30d)
82

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from isaaclins/freesnitch

All issues in isaaclins/freesnitch

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.