Add omitempty for listen_port

This commit is contained in:
世界 2022-07-30 22:05:06 +08:00
parent 70b4577dbe
commit c57ea9e47c
No known key found for this signature in database
GPG Key ID: CD109927C34A63C4

View File

@ -92,7 +92,7 @@ type InboundOptions struct {
type ListenOptions struct {
Listen ListenAddress `json:"listen"`
ListenPort uint16 `json:"listen_port"`
ListenPort uint16 `json:"listen_port,omitempty"`
TCPFastOpen bool `json:"tcp_fast_open,omitempty"`
UDPTimeout int64 `json:"udp_timeout,omitempty"`
InboundOptions