mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-11-13 00:14:22 +08:00
fadc2b6c12
* fix(relay): authenticate endpoints and fail closed on missing routes * fix(tunnel): retain chains until receiver replacement is acknowledged * docs: record final relay security review and validation
14 lines
630 B
Go
14 lines
630 B
Go
package model
|
|
|
|
// TunnelRuntimeCleanup retains ownership until an obsolete local runtime is
|
|
// acknowledged removed. It intentionally survives deletion of its tunnel.
|
|
type TunnelRuntimeCleanup struct {
|
|
ID int64 `gorm:"primaryKey;autoIncrement"`
|
|
TunnelID int64 `gorm:"not null;uniqueIndex:idx_tunnel_cleanup"`
|
|
NodeID int64 `gorm:"not null;uniqueIndex:idx_tunnel_cleanup"`
|
|
Kind string `gorm:"type:varchar(16);not null;uniqueIndex:idx_tunnel_cleanup"`
|
|
Port int `gorm:"not null;default:0;uniqueIndex:idx_tunnel_cleanup"`
|
|
}
|
|
|
|
func (TunnelRuntimeCleanup) TableName() string { return "tunnel_runtime_cleanup" }
|