summaryrefslogtreecommitdiffhomepage
path: root/control/controlknobs/controlknobs.go
diff options
context:
space:
mode:
authorMaisem Ali <maisem@tailscale.com>2024-05-06 11:01:47 -0700
committerMaisem Ali <maisem@gmail.com>2024-05-06 15:15:30 -0700
commit5ef178fdca2bb44cee76be71868f0c5ad491c3f4 (patch)
tree9d12eea2a0e636f83898ac8c66100244528a153b /control/controlknobs/controlknobs.go
parentf3d2fd22ef8c2d6df90a9d3ae7efc0105c9a00c1 (diff)
downloadtailscale-5ef178fdca2bb44cee76be71868f0c5ad491c3f4.tar.xz
tailscale-5ef178fdca2bb44cee76be71868f0c5ad491c3f4.zip
net/tstun: refactor peerConfig to allow storing more details
This refactors the peerConfig struct to allow storing more details about a peer and not just the masq addresses. To be used in a follow up change. As a side effect, this also makes the DNAT logic on the inbound packet stricter. Previously it would only match against the packets dst IP, not it also takes the src IP into consideration. The beahvior is at parity with the SNAT case. Updates tailscale/corp#19623 Co-authored-by: Andrew Dunham <andrew@du.nham.ca> Signed-off-by: Maisem Ali <maisem@tailscale.com> Change-Id: I5f40802bebbf0f055436eb8824e4511d0052772d
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions