From c57ea9e47c09c191ce183d24c59281542cf33841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Sat, 30 Jul 2022 22:05:06 +0800 Subject: [PATCH] Add omitempty for listen_port --- option/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/option/inbound.go b/option/inbound.go index 6be8f8e6..e5c691ec 100644 --- a/option/inbound.go +++ b/option/inbound.go @@ -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