mirror of
https://github.com/wyx2685/V2bX.git
synced 2025-01-22 09:58:14 -05:00
fix bugs
This commit is contained in:
parent
cda0b6711e
commit
15118de367
@ -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)
|
||||
}
|
||||
|
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user