File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -878,17 +878,17 @@ func (ns *Impl) acceptTCP(r *tcp.ForwarderRequest) {
878878 clientRemoteAddrPort := netip .AddrPortFrom (clientRemoteIP , clientRemotePort )
879879
880880 dialIP := netaddrIPFromNetstackIP (reqDetails .LocalAddress )
881- isTailscaleIP := tsaddr . IsTailscaleIP (dialIP )
881+ isLocal := ns . isLocalIP (dialIP )
882882
883883 dstAddrPort := netip .AddrPortFrom (dialIP , reqDetails .LocalPort )
884884
885885 if viaRange .Contains (dialIP ) {
886- isTailscaleIP = false
886+ isLocal = false
887887 dialIP = tsaddr .UnmapVia (dialIP )
888888 }
889889
890890 defer func () {
891- if ! isTailscaleIP {
891+ if ! isLocal {
892892 // if this is a subnet IP, we added this in before the TCP handshake
893893 // so netstack is happy TCP-handshaking as a subnet IP
894894 ns .removeSubnetAddress (dialIP )
@@ -975,7 +975,7 @@ func (ns *Impl) acceptTCP(r *tcp.ForwarderRequest) {
975975 return
976976 }
977977 }
978- if isTailscaleIP {
978+ if isLocal {
979979 dialIP = netaddr .IPv4 (127 , 0 , 0 , 1 )
980980 }
981981 dialAddr := netip .AddrPortFrom (dialIP , uint16 (reqDetails .LocalPort ))
You can’t perform that action at this time.
0 commit comments