fix: stop logging a literal None for single-server DNS #220
Loading…
Reference in a new issue
No description provided.
Delete branch "single-server-log"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Blank
alt_dns2made one server a real configuration (#167), butset_dns's log messages still format the pair unconditionally — a live single-server connect logsDNS: Set 192.168.0.205 and None as dns servers on wg_aqomui(seen 2026-09-16).Fix
Build the server list string once (
XorX and Y) and use it in both the resolved and the resolv.conf branch.Verification
New
TestSetDns.test_single_server_logs_without_a_none: a single-server apply logs the server with noNonein the message. Full suite: 526 passed (+tests/test_mgmt.pyseparately); ruff E9,F63,F7,F82 andcompileallclean.🤖 Generated with Claude Code