Skip to content

Commit

Permalink
Config: Prefer newer alias (REALITY target, RAW)
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX authored Oct 18, 2024
1 parent 7a68999 commit b4e98e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/conf/transport_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ func (c *REALITYConfig) Build() (proto.Message, error) {
config.Show = c.Show
config.MasterKeyLog = c.MasterKeyLog
var err error
if c.Dest == nil {
if c.Target != nil {
c.Dest = c.Target
}
if c.Dest != nil {
Expand Down Expand Up @@ -856,7 +856,7 @@ func (c *StreamConfig) Build() (*internet.StreamConfig, error) {
default:
return nil, errors.New(`Unknown security "` + c.Security + `".`)
}
if c.TCPSettings == nil {
if c.RAWSettings != nil {
c.TCPSettings = c.RAWSettings
}
if c.TCPSettings != nil {
Expand Down

0 comments on commit b4e98e8

Please sign in to comment.