Quota per user
This commit is contained in:
@@ -673,6 +673,10 @@ func (ib *nativeInbound) handleVMess(stream net.Conn, remote net.Addr) {
|
||||
log.Printf("native xray: inbound %q rejected unknown/expired VMess auth id from %s", ib.tag, remote)
|
||||
return
|
||||
}
|
||||
if xrayMgr.nativeQuotaBlocked(client.uuid) {
|
||||
log.Printf("native xray: inbound %q rejected VMess user %s after data quota", ib.tag, client.email)
|
||||
return
|
||||
}
|
||||
|
||||
header, err := openVMessHeader(client.cmdKey, authid, stream)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user