Repository navigation
Conversation
Co-authored-by: RPRX <[email protected]>
Co-authored-by: RPRX <[email protected]>
|
@Fangliding 咋把这个给关了,发现问题在哪了? |
|
这也没有解决争抢问题(如果真是这里) 我看那么久没动了以为放弃了 |
|
|
|
哦这个是重新开的是吧 那更不可能了 |
|
|
|
@copilot 重点是
|
As identified in issue #4760, PR #4030 commented out lines that set inbound and content tags from routing info before dispatch. This broke domain-based routing for WireGuard connections. The fix adds back these lines (with mutex-protected access) positioned right before the Dispatch call, ensuring routing configuration is properly passed for domain-based routing rules to work. This addresses the feedback that uncommenting those lines fixes routing. Co-authored-by: RPRX <[email protected]>
Fixed in 447b443. I've restored the lines that were commented out in PR #4030, positioning them right before the Dispatch call as you indicated. The inbound and content tags from routing info are now properly set (with mutex protection), which should restore domain-based routing functionality. |
|
@Fangliding 我简单看了下 WireGuard 的代码似乎它没实现 FullCone? |
|
|
|
这个是 3.5 sonnet,打算关了用 4.5 opus 试试 |
Domain-based routing rules were ignored for WireGuard connections due to two issues: (1) PR #4030 commented out critical lines that set inbound and content tags before dispatch, and (2) concurrent
Process()calls from multiple peers could overwrite shared routing info.Changes
sync.RWMutexto protectServer.infofield from concurrent accessProcess(): write-locks when updating routing infoforwardConnection(): read-locks and copies routing info locally before useDispatch()call (commented out in PR WireGuard inbound: Fix leaking session information between requests #4030)Technical Details
The WireGuard server stores routing configuration (dispatcher, context, sniffing settings) in
Server.info. Two problems prevented proper routing:inboundTagandcontentTagin the context right before dispatch, breaking domain-based routings.info, causing inconsistent routing configurationThis fix addresses the regression introduced in PR #4030 while also protecting against race conditions in multi-peer deployments.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.