This commit is contained in:
yuzuki999 2023-07-24 07:30:22 +08:00
parent cda0b6711e
commit 15118de367
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ func NewCore(c *conf.CoreConfig) (Core, error) {
if types := strings.Split(c.Type, " "); len(types) > 1 {
var cs []Core
for _, t := range types {
f, ok := cores[strings.ToLower(c.Type)]
f, ok := cores[strings.ToLower(t)]
if !ok {
return nil, errors.New("unknown core type: " + t)
}

View File

@ -80,7 +80,7 @@ func buildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag s
if err != nil {
return nil, fmt.Errorf("marshal reality dest error: %s", err)
}
if len(in.StreamSetting.REALITYSettings.ShortIds) == 0 {
if len(config.CertConfig.RealityConfig.ShortIds) == 0 {
config.CertConfig.RealityConfig.ShortIds = []string{""}
}
in.StreamSetting.REALITYSettings = &coreConf.REALITYConfig{