Add uid and app status in routing rule

This commit is contained in:
世界 2021-08-27 13:00:13 +08:00
parent 707efd6d12
commit 16d96aa54d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
12 changed files with 429 additions and 133 deletions

View file

@ -48,6 +48,11 @@ type Inbound struct {
Conn net.Conn
// Timer of the inbound buf copier. May be nil.
Timer *signal.ActivityTimer
// Uid is the unix user id for the inbound connection
Uid uint32
// SagerNet private: AppStatus is the android app's status for the inbound connection
AppStatus []string
}
// Outbound is the metadata of an outbound connection.