add token for plugin

This commit is contained in:
ginuerzh
2023-04-20 19:05:59 +08:00
parent 32c8188351
commit 73b563f0c1
2 changed files with 21 additions and 2 deletions

View File

@ -110,8 +110,9 @@ type TLSConfig struct {
}
type PluginConfig struct {
Addr string `json:"addr"`
TLS *TLSConfig `json:"tls"`
Addr string `json:"addr"`
TLS *TLSConfig `yaml:",omitempty" json:"tls,omitempty"`
Token string `yaml:",omitempty" json:"token,omitempty"`
}
type AutherConfig struct {