This commit is contained in:
yuzuki999 2023-05-22 11:05:00 +08:00
parent 597f4d1880
commit ebe176b7b3
2 changed files with 15 additions and 16 deletions

View File

@ -39,9 +39,9 @@ Nodes:
MinClientVer: "" # Min client version
MaxClientVer: "" # Max client version
MaxTimeDiff: 0 # Max time difference, ms
ShortIds:
ShortIds: # Short ids
- ""
- "0123456789abcdef" # Short id
- "0123456789abcdef"
EnableFallback: false # Only support for Trojan and Vless
FallBackConfigs: # Support multiple fallbacks
- SNI: # TLS SNI(Server Name Indication), Empty for any

View File

@ -83,8 +83,6 @@ func BuildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag s
},
RejectUnknownSNI: config.CertConfig.RejectUnknownSni,
}
}
} else if config.EnableReality {
// Reality
inbound.StreamSetting.Security = "reality"
@ -99,6 +97,7 @@ func BuildInbound(config *conf.ControllerConfig, nodeInfo *panel.NodeInfo, tag s
ShortIds: config.RealityConfig.ShortIds,
}
}
}
// Support ProxyProtocol for any transport protocol
if *inbound.StreamSetting.Network != "tcp" &&
*inbound.StreamSetting.Network != "ws" &&