mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-26 08:47:09 +00:00
chore: align with legacy behavior
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user