mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-26 21:28:03 +08:00
39 lines
712 B
Go
39 lines
712 B
Go
package config
|
|
|
|
import (
|
|
"github.com/metacubex/mihomo/listener/sing"
|
|
|
|
"encoding/json"
|
|
)
|
|
|
|
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 RealityConfig
|
|
MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"`
|
|
}
|
|
|
|
func (t VlessServer) String() string {
|
|
b, _ := json.Marshal(t)
|
|
return string(b)
|
|
}
|
|
|
|
type RealityConfig struct {
|
|
Dest string
|
|
PrivateKey string
|
|
ShortID []string
|
|
ServerNames []string
|
|
MaxTimeDifference int
|
|
Proxy string
|
|
}
|