mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-19 07:15:48 +00:00
revert changes
This commit is contained in:
@@ -106,13 +106,6 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) {
|
||||
|
||||
// clear client config for additional parameters
|
||||
var final_clients []interface{}
|
||||
|
||||
// detect inbound transmission type
|
||||
var stream map[string]interface{}
|
||||
json.Unmarshal([]byte(inbound.StreamSettings), &stream)
|
||||
network, _ := stream["network"].(string)
|
||||
security, _ := stream["security"].(string)
|
||||
|
||||
for _, client := range clients {
|
||||
|
||||
c := client.(map[string]interface{})
|
||||
@@ -129,9 +122,6 @@ func (s *XrayService) GetXrayConfig() (*xray.Config, error) {
|
||||
if c["flow"] == "xtls-rprx-vision-udp443" {
|
||||
c["flow"] = "xtls-rprx-vision"
|
||||
}
|
||||
if network != "tcp" || !(security == "tls" || security == "reality") {
|
||||
c["flow"] = ""
|
||||
}
|
||||
}
|
||||
final_clients = append(final_clients, interface{}(c))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user