@@ -916,22 +916,22 @@ func (t *dnsgateway) q(t1, t2 Transport, preset []netip.Addr, network, uid strin
916916 // substituions needn't happen when no alg ips to begin with
917917 // but must happen if (real) ips are fixed
918918 mustsubst := false || usefixed
919- ansout := ansin .Copy ()
919+ ansmod := ansin .Copy ()
920920 // TODO: substitute ips in additional section
921921 if algip4hints .IsValid () {
922- substok4 = xdns .SubstSVCBRecordIPs ( /*out*/ ansout , dns .SVCB_IPV4HINT , algip4hints , algXlatTtl ) || substok4
922+ substok4 = xdns .SubstSVCBRecordIPs ( /*out*/ ansmod , dns .SVCB_IPV4HINT , algip4hints , algXlatTtl ) || substok4
923923 mustsubst = true
924924 }
925925 if algip6hints .IsValid () {
926- substok6 = xdns .SubstSVCBRecordIPs ( /*out*/ ansout , dns .SVCB_IPV6HINT , algip6hints , algXlatTtl ) || substok6
926+ substok6 = xdns .SubstSVCBRecordIPs ( /*out*/ ansmod , dns .SVCB_IPV6HINT , algip6hints , algXlatTtl ) || substok6
927927 mustsubst = true
928928 }
929929 if algip4s .IsValid () {
930- substok4 = xdns .SubstARecords ( /*out*/ ansout , algip4s , algXlatTtl ) || substok4
930+ substok4 = xdns .SubstARecords ( /*out*/ ansmod , algip4s , algXlatTtl ) || substok4
931931 mustsubst = true
932932 }
933933 if algip6s .IsValid () {
934- substok6 = xdns .SubstAAAARecords ( /*out*/ ansout , algip6s , algXlatTtl ) || substok6
934+ substok6 = xdns .SubstAAAARecords ( /*out*/ ansmod , algip6s , algXlatTtl ) || substok6
935935 mustsubst = true
936936 }
937937
@@ -977,7 +977,7 @@ func (t *dnsgateway) q(t1, t2 Transport, preset []netip.Addr, network, uid strin
977977 // if mod is set, send modified answer
978978 if mod {
979979 withAlgSummaryIfNeeded (smm , algip4 , algip6 )
980- return ansout , nil
980+ return ansmod , nil
981981 } else {
982982 return ansin , nil
983983 }
0 commit comments