mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-25 12:48:09 +08:00
31 lines
573 B
Go
31 lines
573 B
Go
package config
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
"github.com/metacubex/mihomo/listener/reality"
|
|
"github.com/metacubex/mihomo/listener/sing"
|
|
)
|
|
|
|
type VlessUser struct {
|
|
Username string
|
|
UUID string
|
|
Flow string
|
|
}
|
|
|
|
type VlessServer struct {
|
|
Enable bool
|
|
Listen string
|
|
Users []VlessUser
|
|
WsPath string
|
|
Certificate string
|
|
PrivateKey string
|
|
RealityConfig reality.Config
|
|
MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"`
|
|
}
|
|
|
|
func (t VlessServer) String() string {
|
|
b, _ := json.Marshal(t)
|
|
return string(b)
|
|
}
|