mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-12-23 22:19:49 +00:00
Do not cause error when json:"fallback"
is null
(#361)
Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
This commit is contained in:
parent
439c91d509
commit
fcc9d97074
@ -104,7 +104,7 @@ type TrojanUserConfig struct {
|
||||
// TrojanServerConfig is Inbound configuration
|
||||
type TrojanServerConfig struct {
|
||||
Clients []*TrojanUserConfig `json:"clients"`
|
||||
Fallback json.RawMessage `json:"fallback"`
|
||||
Fallback *TrojanInboundFallback `json:"fallback"`
|
||||
Fallbacks []*TrojanInboundFallback `json:"fallbacks"`
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ type VLessInboundFallback struct {
|
||||
type VLessInboundConfig struct {
|
||||
Clients []json.RawMessage `json:"clients"`
|
||||
Decryption string `json:"decryption"`
|
||||
Fallback json.RawMessage `json:"fallback"`
|
||||
Fallback *VLessInboundFallback `json:"fallback"`
|
||||
Fallbacks []*VLessInboundFallback `json:"fallbacks"`
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user