mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[GH-ISSUE #77] Proxy software tun mode cause addr mismatch #27
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @ICE-GB on GitHub (Jan 16, 2024).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/77
When the request passes through the proxy software using tun mode, the source port will change, causing lan-mouse to ignore the request, is it possible to just determine if the ip is the same?
After I modified it like this it worked for me
@feschber commented on GitHub (Jan 16, 2024):
Yes that would be possible. I have been thinking to do this to allow using it with NAT or similar setups like you described. Probably not the worst idea but debatable if this should be optional or not.
@feschber commented on GitHub (Jan 16, 2024):
I think there is actually no downside to allowing incoming requests from arbitrary ports.
I've gone a bit further than what you proposed and replaced the socket_addrs HashSet with ips completely.
See #78
You can try it out (prebuilt binaries are available @ https://github.com/feschber/lan-mouse/actions/runs/7544659639 if you want).
Will do some more testing to ensure its correct
@ICE-GB commented on GitHub (Jan 17, 2024):
Thanks! I'll give it a try!