mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2025-04-25 12:48:09 +08:00
24 lines
709 B
Go
24 lines
709 B
Go
package inbound
|
|
|
|
import "github.com/metacubex/mihomo/listener/reality"
|
|
|
|
type RealityConfig struct {
|
|
Dest string `inbound:"dest"`
|
|
PrivateKey string `inbound:"private-key"`
|
|
ShortID []string `inbound:"short-id"`
|
|
ServerNames []string `inbound:"server-names"`
|
|
MaxTimeDifference int `inbound:"max-time-difference,omitempty"`
|
|
Proxy string `inbound:"proxy,omitempty"`
|
|
}
|
|
|
|
func (c RealityConfig) Build() reality.Config {
|
|
return reality.Config{
|
|
Dest: c.Dest,
|
|
PrivateKey: c.PrivateKey,
|
|
ShortID: c.ShortID,
|
|
ServerNames: c.ServerNames,
|
|
MaxTimeDifference: c.MaxTimeDifference,
|
|
Proxy: c.Proxy,
|
|
}
|
|
}
|