mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-25 04:38:04 +08:00
20 lines
592 B
Go
20 lines
592 B
Go
package config
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
type AnyTLSServer struct {
|
|
Enable bool `yaml:"enable" json:"enable"`
|
|
Listen string `yaml:"listen" json:"listen"`
|
|
Users map[string]string `yaml:"users" json:"users,omitempty"`
|
|
Certificate string `yaml:"certificate" json:"certificate"`
|
|
PrivateKey string `yaml:"private-key" json:"private-key"`
|
|
PaddingScheme string `yaml:"padding-scheme" json:"padding-scheme,omitempty"`
|
|
}
|
|
|
|
func (t AnyTLSServer) String() string {
|
|
b, _ := json.Marshal(t)
|
|
return string(b)
|
|
}
|