mihomo/listener/config/vmess.go

29 lines
478 B
Go
Raw Normal View History

package config
import (
2023-11-23 08:20:26 +08:00
"github.com/metacubex/mihomo/listener/sing"
"encoding/json"
)
type VmessUser struct {
Username string
UUID string
AlterID int
}
type VmessServer struct {
Enable bool
Listen string
Users []VmessUser
WsPath string
Certificate string
PrivateKey string
2023-11-23 08:20:26 +08:00
MuxOption sing.MuxOption `yaml:"mux-option" json:"mux-option,omitempty"`
}
func (t VmessServer) String() string {
b, _ := json.Marshal(t)
return string(b)
}