mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
proxy supports configuring annotations, which will be displayed in the frps dashboard (#4000)
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user