> "How should wireguard know which IP is the correct source IP address?"
> I digged into the source code but couldn't find the part where the source-IP 
> is selected for outgoing connections (like a simple ping).
> I am not a developer but would like to try to understand it. Could someone 
> give me a pointer?

I think it is left to the OS and it's tcp stack to pick the ip (and
interface) based on the UDP destination ip and the current routing
table when sending udp packets.

May the most significant bit of your life be positive.

Reply via email to