@@ -225,23 +225,23 @@ func (h *baseHandler) onFlow(localaddr, target netip.AddrPort) (fm *Mark, undidA
225
225
log .W ("com: %s: onFlow: empty res or on flow timeout %t; block!" , h .proto , ok )
226
226
fm = optionsBlock
227
227
} else if len (fm .PIDCSV ) <= 0 {
228
- if pre . IsUidSelf {
228
+ if preuid == SELF_UID {
229
229
fm .PIDCSV = ipn .Exit
230
230
} else if h .prox .AutoActive () {
231
231
fm .PIDCSV = ipn .Auto
232
232
} else {
233
233
fm .PIDCSV = ipn .Exit
234
234
}
235
- log .E ("com: %s: onFlow: no pid for (%s => %s) from kt (alg: %v + %v); %s!" ,
236
- h .proto , src , dst , ips , doms , fm .PIDCSV )
235
+ log .E ("com: %s: onFlow: missing proxyid for preuid %s (%s => %s) from kt (alg: %v + %v); %s!" ,
236
+ h .proto , preuid , src , dst , ips , doms , fm .PIDCSV )
237
237
}
238
- if pre . IsUidSelf && ! ipn .IsAnyLocalProxy (strings .Split (fm .PIDCSV , "," )... ) {
238
+ if preuid == SELF_UID && ! ipn .IsAnyLocalProxy (strings .Split (fm .PIDCSV , "," )... ) {
239
239
egress := ipn .Exit
240
240
if h .resolver .IsDnsAddr (target ) {
241
241
egress = ipn .Base // see: udp.go:dnsOverride
242
242
}
243
- log .W ("com: %s: onFlow: preflow: pid (%s => %s) is rethink! override %s to %s!" ,
244
- h .proto , src , dst , fm .PIDCSV , egress )
243
+ log .W ("com: %s: onFlow: preflow: preuid %s (%s => %s) is rethink! override %s to %s!" ,
244
+ h .proto , preuid , src , dst , fm .PIDCSV , egress )
245
245
fm .PIDCSV = egress
246
246
}
247
247
0 commit comments