按协议判断连接权限,优化权限检查效率
This commit is contained in:
@@ -11,10 +11,12 @@ type Channel struct {
|
||||
gorm.Model
|
||||
UserId uint
|
||||
NodeId uint
|
||||
UserAddr string
|
||||
NodePort int
|
||||
AuthIp bool
|
||||
AuthPass bool
|
||||
Protocol string
|
||||
Username string
|
||||
Password string
|
||||
AuthIp bool
|
||||
AuthPass bool
|
||||
Expiration time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user