Skip to content

Commit

Permalink
fix inboundbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
wyx2685 committed Dec 16, 2023
1 parent 8e5a35b commit e946f20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/controller/inboundbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,14 @@ func InboundBuilder(config *Config, nodeInfo *api.NodeInfo, tag string) (*core.I
if err != nil {
return nil, fmt.Errorf("marshal dest %s config fialed: %s", dest, err)
}
} else if config.EnableREALITY && config.REALITYConfigs != nil {
isREALITY = true
streamSetting.Security = "reality"
private_key := nodeInfo.REALITYConfig.PrivateKey
if private_key == "" {
private_key = config.REALITYConfigs.PrivateKey
}
streamSetting.REALITYSettings = &conf.REALITYConfig{
Show: config.REALITYConfigs.Show,
Dest: []byte(`"` + config.REALITYConfigs.Dest + `"`),
Dest: dest,
Xver: config.REALITYConfigs.ProxyProtocolVer,
ServerNames: config.REALITYConfigs.ServerNames,
PrivateKey: private_key,
Expand Down

0 comments on commit e946f20

Please sign in to comment.