diff --git a/adapter/outbound/reality.go b/adapter/outbound/reality.go index 5ba9a916..70c7bc7a 100644 --- a/adapter/outbound/reality.go +++ b/adapter/outbound/reality.go @@ -12,7 +12,7 @@ import ( type RealityOptions struct { PublicKey string `proxy:"public-key"` - ShortID string `proxy:"short-id"` + ShortID string `proxy:"short-id,omitempty"` SupportX25519MLKEM768 bool `proxy:"support-x25519mlkem768,omitempty"` } diff --git a/listener/inbound/vmess.go b/listener/inbound/vmess.go index 6090f845..7535ad76 100644 --- a/listener/inbound/vmess.go +++ b/listener/inbound/vmess.go @@ -26,7 +26,7 @@ type VmessOption struct { type VmessUser struct { Username string `inbound:"username,omitempty"` UUID string `inbound:"uuid"` - AlterID int `inbound:"alterId"` + AlterID int `inbound:"alterId,omitempty"` } func (o VmessOption) Equal(config C.InboundConfig) bool {