proxy supports configuring annotations, which will be displayed in the frps dashboard (#4000)

This commit is contained in:
fatedier
2024-02-19 16:28:27 +08:00
committed by GitHub
parent 9152c59570
commit 3529158f31
18 changed files with 287 additions and 129 deletions

View File

@@ -1,6 +1,7 @@
class BaseProxy {
name: string
type: string
annotations: Map<string, string>
encryption: boolean
compression: boolean
conns: number
@@ -21,6 +22,13 @@ class BaseProxy {
constructor(proxyStats: any) {
this.name = proxyStats.name
this.type = ''
this.annotations = new Map<string, string>()
if (proxyStats.conf?.annotations) {
for (const key in proxyStats.conf.annotations) {
this.annotations.set(key, proxyStats.conf.annotations[key])
}
}
this.encryption = false
this.compression = false
this.encryption =