@@ -100,7 +100,7 @@ func (m *ipmapper) LookupNetIPFor(ctx context.Context, network, host, uid string
100100
101101// Implements IPMapper.
102102func (m * ipmapper ) LookupNetIPOn (ctx context.Context , network , host string , tid ... string ) ([]netip.Addr , error ) {
103- return m .queryIP2 (ctx , network , host , core . UNKNOWN_UID_STR , tid ... )
103+ return m .queryIP2 (ctx , network , host , protect . UidSelf , tid ... )
104104}
105105
106106func (m * ipmapper ) queryIP (ctx context.Context , network , host string , uid string ) ([]netip.Addr , error ) {
@@ -258,6 +258,7 @@ func (m *ipmapper) lookupfor(q []byte, uid string) func() (answer, error) {
258258// lookupon always resolves on one of the chosen tids
259259// (if empty, it may or may not use dnsx.Default;
260260// see: dnsx.transport.go:determineTransport)
261+ // uid may be protect.UidSelf or unknown
261262func (m * ipmapper ) lookupon (q []byte , uid string , tids ... string ) func () (answer , error ) {
262263 return func () (answer , error ) {
263264 a , tid , err := m .r .LookupFor2 (q , uid , tids ... )
0 commit comments